Skip to content
Loading
click event in modal popup is not fired
           
               
                   
                       
                           
                               
                       
                   
                   
                       
                           
                               
                                   
  • Home
  •                                    
  • About
  •                                         Us
                                       
  • Academics
  •                                        
                                               
  • Overview
  •                                            
  • Ordinances & Regulations
  •                                            
  • Programmes
  •                                        
                                       
                                       
  • Study Centers
  •                                        
                                               
  • Join As Study Center
  •                                        
                                       
                                       
  • Downloads
  •                                
                               
                           
                           
                               
                                   
                                   
                                   
                                        WatermarkText="Courses, Study Centers">
                                   
                    
                                   
                                   
                               
                           
                       
                   
               
           
           
               
                   
                       
                   
               
               
                   
                       
                           
                               
                               
                               
                               
                               
                           
                           
                                Jyoti Institute of IT & Management
                               
                                Jaunpur (UP)
                           

                       
                   
               
           
       
       
           
           
       
       
           
                © Copyrights, 2013 Jyoti Institute | Designed & Developed by Weblord Infotech
           
           
       
       


    master.master.cs

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    public partial class DefaultMasterPage : System.Web.UI.MasterPage
    {
        Enquiry objEnquiry = new Enquiry();

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void OpenPopUp1_Click(object sender, ImageClickEventArgs e)
        {
            ModalPopupExtender1.Show();
        }

        protected void OpenPopUp2_Click(object sender, ImageClickEventArgs e)
        {
            ModalPopupExtender_2.Show();
        }

        private void Clear()
        {
            drpCourses.SelectedIndex = 0;
            txtName.Text = "";
            txtFullName.Text = "";
            txtEmail.Text = "";
            txtEmailId.Text = "";
            txtMobile.Text = "";
            txtMobileNum.Text = "";
            txtCity.Text = "";
            txtCityName.Text = "";
            txtState.Text = "";
            txtStateName.Text = "";
            txtPin.Text = "";
            txtComment.Text = "";
            txtComments.Text = "";
            
        }

        protected void btnStore_Click(object sender, EventArgs e)
        {
            //Studycenter enquiry form
            //objEnquiry.EnterStudyCenterEnquiry(0, txtFullName.Text, txtEmailId.Text, txtMobileNum.Text, txtCityName.Text, txtStateName.Text, txtPin.Text, txtComment.Text);
            ltrMsg2.Visible = true;
            Clear();
        }
    }
  • Sanjeeb Lenka
    hi,

    plz share your full aspx code
  • still its not working
  • Sanjeeb Lenka
    Hi,

    i checked your code it working in my system. just save the pages and check it.
    if same problem occurs then delete the click event of button and write it again.