I'm trying to figure out what I have wrong in the following code. It's
located at http://www.ledet.com/locations/location.aspx
If I call this page with http://www.ledet.com/locations/location.aspx?id=0
it works fine and redirects to the default page for that directory.
But if I call it with http://www.ledet.com/locations/location.aspx?id=188
it doesn't redirect
Does anyone have any suggestions?
----------------------------------------------------------------------------------------------------------
// Get locationID variable from the querystring. If there is now id
variable, redirect back to the main location page.
this.locationID = this.Request.QueryString.Get("id") != null ?
Convert.ToInt32(this.Request.QueryString.Get("id") ) : 0;
if (this.locationID == 0)
{
this.Response.Redirect("default.aspx");
}
if (this.locationID==188)
{
this.Response.Redirect("http;//www.ledet.com/vilt/default.aspx");
}