protected void mydetails_ItemCommand(object sender, ListViewCommandEventArgs e)
 {
     if (e.CommandName == "Update")
     {
         //Label _id = (Label)e.Item.FindControl("so_itm_idLabel");
         //TextBox _resp = (TextBox)e.Item.FindControl("responseTextBox");
         //BLL_Dml _objbll = new BLL_Dml();
         //_database _objdb = new _database();
         //_objdb.DBName = "DB_" + lblprjcode.Text;
         //_clsSO _objcls = new _clsSO();
         //_objcls.so_itm_id = Convert.ToInt32(_id.Text);
         //_objcls.response = _resp.Text;
         //_objbll.Update_SO_Resp(_objcls, _objdb);
         //ScriptManager.RegisterStartupScript(this, typeof(string), "close", "window.close();", true);
     }
     else if (e.CommandName == "Edit")
     {
         TextBox _response = (TextBox)e.Item.FindControl("txtResponse");
         txtresp.Text = _response.Text;
         Label _soItemID = (Label)e.Item.FindControl("so_itm_idLabel");
         lblsoitmid.Text = _soItemID.Text;
         btnDummy_ModalPopupExtender1.Show();
     }
     else if (e.CommandName == "Comment")
     {
         TextBox _comment = (TextBox)e.Item.FindControl("txt_cmlcomment");
         txt_cmlresp.Text = _comment.Text;
         Label _soItemID = (Label)e.Item.FindControl("so_itm_idLabel");
         lblsoitmid.Text = _soItemID.Text;
         ModalPopupExtender1_cmt.Show();
     }
     ScriptManager.RegisterStartupScript(this, typeof(string), "close", "CallAutoSize();", true);
 }
        protected void btnupdate_cmt_Click(object sender, EventArgs e)
        {
            BLL_Dml   _objbll = new BLL_Dml();
            _database _objdb  = new _database();

            _objdb.DBName = "DB_" + lblprjcode.Text;
            _clsSO _objcls = new _clsSO();

            _objcls.so_itm_id = Convert.ToInt32(lblsoitmid.Text);
            _objcls.response  = txt_cmlresp.Text;
            _objbll.Update_SO_CMLResp(_objcls, _objdb);
            load_so_details(Convert.ToInt32(lblid.Text));
            ModalPopupExtender1_cmt.Hide();
            ScriptManager.RegisterStartupScript(this, typeof(string), "close", "CallAutoSize();", true);
        }
 protected void btncancel_cmt_Click(object sender, EventArgs e)
 {
     ModalPopupExtender1_cmt.Hide();
     ScriptManager.RegisterStartupScript(this, typeof(string), "close", "CallAutoSize();", true);
 }