i have inquiry form which gets open in modal popup extender. when i click on button to store data click event does not get fired
i don't know whats going wrong can any one help me to solve this problem
thanks in advance
here is my code
master.maser
CausesValidation="false" OnClick="OpenPopUp2_Click" />
PopupControlID="Panel2" TargetControlID="btnPopUp2" CancelControlID="btnClose2">
Institute Enquiry Form
Visible="false">
ID="TextBoxWatermarkExtender8" runat="server" TargetControlID="txtFullName" WatermarkText="* Full Name "> |
ID="TextBoxWatermarkExtender9" runat="server" TargetControlID="txtEmailId" WatermarkText="* E-mail ID "> |
Width="30px"> ID="TextBoxWatermarkExtender10" runat="server" TargetControlID="txtMobileNum" WatermarkText="* Mobile number "> |
ID="TextBoxWatermarkExtender11" runat="server" TargetControlID="txtCityName" WatermarkText="City "> |
ID="TextBoxWatermarkExtender12" runat="server" TargetControlID="txtStateName" WatermarkText="State "> |
ID="TextBoxWatermarkExtender14" runat="server" TargetControlID="txtPin" WatermarkText="Pin Code "> |
ID="TextBoxWatermarkExtender13" runat="server" TargetControlID="txtComment" WatermarkText="Comments "> |
SetFocusOnError="true" ControlToValidate="txtFullName" CssClass="ErrorMsg">
SetFocusOnError="true" ControlToValidate="txtEmailId" CssClass="ErrorMsg">
runat="server" CssClass="ErrorMsg" SetFocusOnError="true" ErrorMessage="Invalid Email" />
SetFocusOnError="true" ControlToValidate="txtMobileNum" CssClass="ErrorMsg">
master.master.cs
protected void OpenPopUp2_Click(object sender, ImageClickEventArgs e)
{
ModalPopupExtender_2.Show();
}
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();
}
private void Clear()
{
txtFullName.Text = "";
txtEmailId.Text = "";
txtMobileNum.Text = "";
txtCityName.Text = "";
txtStateName.Text = "";
txtPin.Text = "";
txtComment.Text = "";
}
4 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kavita PhardePosted Sep 25, 2013, 8:06 AM
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="DefaultMasterPage.master.cs"
master.master.cs
Sanjeeb LenkaPosted Sep 25, 2013, 7:46 AM
plz share your full aspx code
Kavita PhardePosted Sep 25, 2013, 7:30 AM
Sanjeeb LenkaPosted Sep 25, 2013, 7:18 AM
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.