A
A.M
Hi,
To check if QueryString contains a key I compaire it with null like this
code:
if (Request.QueryString["id"]!=null)
{
Label1.Text= Request.QueryString["id"];
}
else
{
Label1.Text= "NoId";
}
Is it the best way to do see if QueryString contains a key or I am missing
some better method in QueryString?
Thanks,
Alan
To check if QueryString contains a key I compaire it with null like this
code:
if (Request.QueryString["id"]!=null)
{
Label1.Text= Request.QueryString["id"];
}
else
{
Label1.Text= "NoId";
}
Is it the best way to do see if QueryString contains a key or I am missing
some better method in QueryString?
Thanks,
Alan