Click to See Complete Forum and Search --> : [RESOLVED] Request.Querystring


Bill Crawley
September 21st, 2007, 04:32 AM
Hi All,

I call a page in 2 ways:

first is simply :

Response.Redirect("AddSOR.aspx")

and the other way is

Response.Redirect(String.Format("AddSOR.aspx?Tagid={0}", Request.QueryString("id")))

How do I test to see if TagId has been passed?

andreasblixt
September 21st, 2007, 05:06 AM
This should do it:
if (Request.QueryString["Tagid"] != null) { /* ... */ }