Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 01, 2011 07:24 AM by divyajsinha
May 23, 2011 11:29 AM|LINK
<Ajax:ModalPopupExtender runat="server" ID="MPCForInfo" TargetControlID="btnUpdate"
PopupControlID="pnlInfo" Enabled="true" DropShadow="true"
CancelControlID="btnMPCancel" BackgroundCssClass="ModelPopUpBGStyle" >
in btnUpdate click event i have lot back end code to do
protected void btnSubmit_Click(object sender, EventArgs e)
string strlog = string.Empty;
DataSet ds = null;
TextBox myTextBox = WIPObjects.FindControl("txtMainFile") as TextBox;
strMainFileName = myTextBox.Text;
TextBox SVNPath = WIPObjects.FindControl("txtSvnFolderPath") as TextBox;
strSVNPath = SVNPath.Text;
when i use btnUpdate as a modelpopUp target control then the back end code is not executing.
My requirement is, the back end code is running 2 or 3 minutes meanwhile i need to some information about progress
i tried target control as a pnlInfo then the panel displaying two one as model popup and another one is in page and cancel button also not working ..
Can any one give me solution for the ....
Thanks in advance
May 23, 2011 11:44 AM|LINK
you can show popup in code-behind using
use label set style=display:none
set TargetControlID="label1" (dont set TargetControlID as button, then you can't execute click event)
in btnSubmit_Click call
May 24, 2011 02:51 AM|LINK
Hi, Please refer this
May 26, 2011 05:07 AM|LINK
If you are using ModalPopup extender to binding a control that will do postback, you'll consider that either the popup won't open or the control's event at code behind won't happen. This is because when you the popup comes up, it cancel the control's postback.
May 26, 2011 05:19 AM|LINK
take a fake button and set it as TargetControlID of the modal popupand set it style="display:none" to make it invisble.. now on the main button on which u want to show the popup write in code behind on its click event the following code after u have filied
ur modal popup panel..
the show() method will open the popup
contact if there is any further problem
May 26, 2011 05:32 AM|LINK
<asp:UpdatePanel ID="updPnlMapUpdate" runat="server" UpdateMode="Conditional">
<asp:Button ID="btnGo" runat="server" Text="Go" onclick="btnGo_Click" />
<cc1:ModalPopupExtender ID="mdlGoogleMapGo" runat="server" BehaviorID="mdlPopup1"
TargetControlID="btnGo" PopupControlID="divGoogleMapGo" BackgroundCssClass="ModalPopupBG"
protected void btnGo_Click(object sender, EventArgs e)
show the modal popup
Jun 01, 2011 06:54 AM|LINK
Jun 01, 2011 07:02 AM|LINK
Jun 01, 2011 07:24 AM|LINK
I have tried it..but no use