It sort of helps, but I have a question. I have found that if id does exist in the querystring but does not have a value assigned, that the server will throw up an error. I have had to change it to
if (Request.QueryString["id"] != null && Request.QueryString["id"] != "")
{
do stuff
}
in order to account for a blank entry as well. It seems like php's isset accounts for both.
glook
Member
6 Points
6 Posts
Re: How to check if ID is set?
Sep 27, 2006 08:43 PM|LINK
It sort of helps, but I have a question. I have found that if id does exist in the querystring but does not have a value assigned, that the server will throw up an error. I have had to change it to
if (Request.QueryString["id"] != null && Request.QueryString["id"] != "")
{
do stuff
}
in order to account for a blank entry as well. It seems like php's isset accounts for both.
querystring isset