Check For Key in Querystring

/ Published in: C#
Save to your folder(s)

Ensures that the querystring key that you require exists before using it.

Copy this code and paste it in your HTML
  1. if (!string.IsNullOrEmpty(Request.QueryString["somekey"]))
  2. //do some stuff
  3. }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.