protected void btn_submit_Click(object sender, EventArgs e) { if (txt_desc.Text.Trim() != "") { try { // SqlParameter[] param = new SqlParameter[] { new SqlParameter("@userid", (((UserDetails)Session[clsConstant.TOKEN]).UserID).ToString().ToUpper()), new SqlParameter("@msg", txt_desc.Text) //(((UserDetails)Session[clsConstant.TOKEN]).UserID).ToString()) }; clsFeedBack feed = new clsFeedBack(); feed.InserFeedBack(param); SendMail(); Response.Write("<script>alert('Your feedback is submitted sucessfully')</script>"); MPE.Hide(); txt_desc.Text = ""; } catch { MPE.Hide(); txt_desc.Text = ""; } } else { Response.Write("<script>alert('Please enter feedback message')</script>"); } }
private void panelu() { if (Session.IsNewSession) { MPE.Hide(); } else { MPE.Show(); } }
/// <summary> /// method /// displays the parent dialog /// only call this when you do not want to show this control's dialog /// </summary> public void ShowParentMPE() { if (ParentMPE != null) { ParentMPE.Show(); } if (MPE != null) { MPE.Hide(); } Visible = false; }
protected void btnclose_Click(object sender, ImageClickEventArgs e) { MPE.Hide(); }
private void Hide() { lblMessage.Text = ""; lblCaption.Text = ""; MPE.Hide(); }