Exemple #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         if (Request.QueryString["ComplaintId"] != null)
         {
             GridAns.DataSource = objPost.BindAnsGrid("where [Complaint_Id]='" + Request.QueryString["ComplaintId"].ToString() + "'");
             GridAns.DataBind();
         }
     }
 }
Exemple #2
0
        protected void BindAnsGrid()
        {
            string ComplaintId = string.Empty;

            if (txtComplaintId.Text.Trim() == "")
            {
                ComplaintId = "";
            }
            else
            {
                ComplaintId = "Where Complaint_Id=" + txtComplaintId.Text.Trim();
            }
            pnlpopup.Style.Add("display", "none");
            mask.Style.Add("display", "none");
            DivBtn.Style.Add("display", "none");
            ds = new DataSet();
            ds = objPost.BindAnsGrid(ComplaintId);
            GridAns.DataSource = ds;
            GridAns.DataBind();
            DivPwd.Style.Add("display", "block");
            //  ScriptManager.RegisterStartupScript(Page, this.GetType(), "Key", "<script>Divbtn(); </script>", false);
            ScriptManager.RegisterStartupScript(Page, this.GetType(), "Key", "<script>MakeStaticHeader('" + GridAns.ClientID + "', 750, 100 , 120 ,true); </script>", false);
        }