Click here to Skip to main content
15,886,002 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
XML
<Ajax:ModalPopupExtender runat="server" ID="MPCForInfo" TargetControlID="btnUpdate"
                    PopupControlID="pnlInfo" Enabled="true" DropShadow="true"
                    CancelControlID="btnMPCancel" BackgroundCssClass="ModelPopUpBGStyle" >
</Ajax:ModalPopupExtender>



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 show 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
Posted
Updated 23-May-11 1:35am
v2

 
Share this answer
 
v2
try this

XML
<asp:ModalPopupExtender ID="Panel2_ModalPopupExtender" runat="server" TargetControlID="Button1"
            PopupControlID="Panel2"  DynamicServicePath="" >
        </asp:ModalPopupExtender>
        <asp:Button ID="Button1" runat="server" Text="" style="visibility:hidden" />
        <asp:Button ID="Button2" runat="server" Text="Click" onclick="Button2_Click" /> 


/*take One dummy button on TargetControlID="Button1" and set style="visibility:hidden" like Above
take Another Button [ID="Button2" ]
in the Code Behind
*/
protected void Button2_Click(object sender, EventArgs e)
       {
           Panel2_ModalPopupExtender.Show();
       }
 
Share this answer
 
Comments
Rajesh Kumar Chekuri 23-May-11 8:22am    
yes i already tried this one
but problem is the panel displaying two times one as PopUp and second one is in the aspx page
XML
<asp:ModalPopupExtender ID="Panel2_ModalPopupExtender" runat="server" TargetControlID="Button1"
            PopupControlID="Panel2"  DynamicServicePath="" >
        </asp:ModalPopupExtender>
        <asp:Button ID="Button1" runat="server" Text="" style="visibility:hidden" />
        <asp:Button ID="Button2" runat="server" Text="Click" onclick="Button2_Click" />
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900