Best way of handling querystring [modified]
-
one of my team mate has written like this in c# if (Request.QueryString["test1"] != null) { --- do something } else { Response.Redirect(Request.UrlReferrer.ToString(), false); } What the --------:rolleyes::^):-D -- modified at 6:24 Thursday 29th March, 2007
-
one of my team mate has written like this in c# if (Request.QueryString["test1"] != null) { --- do something } else { Response.Redirect(Request.UrlReferrer.ToString(), false); } What the --------:rolleyes::^):-D -- modified at 6:24 Thursday 29th March, 2007
-
Could you please translate this for all the C++ programmers here ;P
Alcohol, the cause of and the solution to all of life's problems - Homer J. Simpson X| X| X|
if "?test1=..." appears in the URL for this page
{
--- do something
}
else
{
send a request back to the client to get their browser
to re-request this page without the "?test1=..." bit on the end
}That's uuuh-gleeee
cheers, Chris Maunder
CodeProject.com : C++ MVP
-
if "?test1=..." appears in the URL for this page
{
--- do something
}
else
{
send a request back to the client to get their browser
to re-request this page without the "?test1=..." bit on the end
}That's uuuh-gleeee
cheers, Chris Maunder
CodeProject.com : C++ MVP
Actually it sends them back to the page that referred them to the current page (which isn't a good idea because Norton and McAfee like to change your settings so referrer information is not passed with the request). Request.UrlReferrer