Re: Querystring empty

Tech-Archive recommends: Fix windows errors by optimizing your registry



I don't understand.

I am not checking if there is a particular parameter there. I want to know
if the URL has 0 parameters (file.aspx). file.aspx?r=1 has 1 parameter and
file.aspx?r=1&st=joe has 2 parameters.

I want to be able to special processing if there is no parameters passed at
all. I don't want to check if r is nothing and st is nothing.

Thanks,

Tom
"Mr Ideas Man" <adam@xxxxxxxxxxxxxxx> wrote in message
news:ObY4AacMGHA.1832@xxxxxxxxxxxxxxxxxxxxxxx
IF (Request.QueryString("yourQueryString") Is Nothing) Then

END IF

Or

if(Request.QueryString("yourQueryString") == null)
{

}

Cheers,
Adam

"tshad" <tscheiderich@xxxxxxxxxxxxxxx> wrote in message
news:OBLFUPcMGHA.1192@xxxxxxxxxxxxxxxxxxxxxxx
How do you check to see if there is no query string?

I could have:
1) file.aspx
2) file.aspx?r=5&st=joe

I need to know when there is no query string at all (1).

Thanks,

Tom





.