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 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Sep 25, 2013, 3:18 AM EDT
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.
Kavita Pharde44 reputationPosted Sep 25, 2013, 3:30 AM EDT
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Sep 25, 2013, 3:46 AM EDT
plz share your full aspx code
Kavita Pharde44 reputationPosted Sep 25, 2013, 4:06 AM EDT
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="DefaultMasterPage.master.cs"
master.master.cs
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts