Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi guys, thank you for reading.

 

I have a page which have a function to request.querystring("sth") the previous page's form. However, due to the program logic, sometimes the previous page do not give out any querystring. Therefore, if I go on the request.querystring("sth"), a nullreference error occur. Is there any method to know request.querystring("sth") is null or not?

 

Also, the same problem also occur for the session. I don't know if there are any method to know Session("sth") is null or not.

 

Thanks.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...