Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 28, 2012 04:18 AM by jeeten09
Member
122 Points
150 Posts
Mar 28, 2012 03:54 AM|LINK
Is there any problem If We use Button click event & ModelPopUpExtender On same button ???
i.e.
<asp:button id="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click">
<asp:ModalPopupExtender ID="mpe" runat="server" TargetControlID="btnSubmit" PopupControlID="plRegistrySubmit" CancelControlID="btnRegistryCancel"> </asp:ModalPopupExtender>
<asp:Panel id="plRegistrySubmit" runat="server">
Hello
</Panel>
In Code Behind, I have fired some events on btnSubmit_Click...
So When I am running this code, I can see only PopUp Panel But btnSubmit_Click is not firing...
I dnt want to use any web services, so is there any way by which i can solve my problem ???
All-Star
31334 Points
5415 Posts
Mar 28, 2012 04:04 AM|LINK
it should work.. have you followed the link i have suggested here ?
anyhow post your code ? i will check and reply you
hi, if you set TargetControlID="btnSubmit" then btnSubmit_Click will not execute.
to do that just define label with style="display:none" set TargetControlID="label1"
to show the popup use mpe.Show(), to close mpe.Hide()
Refer : http://forums.asp.net/t/1683244.aspx/1?How+to+Call+ModelPopUp+Target+Control+Button+Code+Behind+Code
Mar 28, 2012 04:18 AM|LINK
karthicks hi, if you set TargetControlID="btnSubmit" then btnSubmit_Click will not execute. to do that just define label with style="display:none" set TargetControlID="label1" to show the popup use mpe.Show(), to close mpe.Hide()
Its nt working...
jeeten09
Member
122 Points
150 Posts
Button click does not work with target control id of ModelPopUp...
Mar 28, 2012 03:54 AM|LINK
Is there any problem If We use Button click event & ModelPopUpExtender On same button ???
i.e.
<asp:button id="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click">
<asp:ModalPopupExtender ID="mpe" runat="server" TargetControlID="btnSubmit" PopupControlID="plRegistrySubmit"
CancelControlID="btnRegistryCancel">
</asp:ModalPopupExtender>
<asp:Panel id="plRegistrySubmit" runat="server">
Hello
</Panel>
In Code Behind, I have fired some events on btnSubmit_Click...
So When I am running this code, I can see only PopUp Panel But btnSubmit_Click is not firing...
I dnt want to use any web services, so is there any way by which i can solve my problem ???
</div>karthicks
All-Star
31334 Points
5415 Posts
Re: Button click does not work with target control id of ModelPopUp...
Mar 28, 2012 04:04 AM|LINK
it should work.. have you followed the link i have suggested here ?
anyhow post your code ? i will check and reply you
hi, if you set TargetControlID="btnSubmit" then btnSubmit_Click will not execute.
to do that just define label with style="display:none" set TargetControlID="label1"
to show the popup use mpe.Show(), to close mpe.Hide()
Refer : http://forums.asp.net/t/1683244.aspx/1?How+to+Call+ModelPopUp+Target+Control+Button+Code+Behind+Code
Karthick S
jeeten09
Member
122 Points
150 Posts
Re: Button click does not work with target control id of ModelPopUp...
Mar 28, 2012 04:18 AM|LINK
Its nt working...