Ejemplo n.º 1
0
 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>");
     }
 }
Ejemplo n.º 2
0
 private void panelu()
 {
     if (Session.IsNewSession)
     {
         MPE.Hide();
     }
     else
     {
         MPE.Show();
     }
 }
Ejemplo n.º 3
0
    /// <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;
    }
Ejemplo n.º 4
0
 protected void btnclose_Click(object sender, ImageClickEventArgs e)
 {
     MPE.Hide();
 }
Ejemplo n.º 5
0
 private void Hide()
 {
     lblMessage.Text = "";
     lblCaption.Text = "";
     MPE.Hide();
 }