One of my duties was to finish and maintain an application developed around 80% by somebody else. One of the pearls encountered in the code is this:
//if-else put here. Sometimes Querystring[2] is needed.
//other times it is QueryString[0]. Not sure why...
string id;
if (Request.QueryString.Count == 1) {
//id = Request.QueryString[0];
id = Request.QueryString[1];
} else {
id = Request.QueryString[2];
}