Thursday 8 July, 2010

QUERYSTRING CHECK

  1. string id = (!string.IsNullOrEmpty(Request.QueryString["id"])) ? Request.QueryString["id"] : String.Empty;
  2. if (id.Length > 0)
  3. {
  4. }
  5. int id= (!string.IsNullOrEmpty(Request.QueryString["id"])) ? Convert.ToInt32(Request.QueryString["id"]) : 0;
  6. if (id > 0)
  7. {
  8. }

No comments:

Post a Comment