Tuesday, 3 January 2012

Check QueryString Empty or Null


      if (Request.QueryString["[ID]"] != "" && Request.QueryString["[ID]"] != null)
         {

        //if (Request.QueryString["ID"].ToString() != null)
        //{
            LoadData(" AND SRNO = " + Request.QueryString["ID"].ToString() + "");
        }
        else
        {
            LoadData(string.Empty);
        }

No comments:

Post a Comment