You must Sign In to post a response.
  • Category: ASP.NET

    Updateprogress not working

    My loading bar inside update progress not working on buttonclick .How to resolve this


    <asp:UpdatePanel runat="server" ID="updTerms">
    <ContentTemplate>

    <div id="test1" runat="server">


    <asp:Button ID="btnSubmit" Enabled="false" CssClass="asgButton" runat="server" Text="Submit"
    onclick="btnSubmit_Click"/>

    </div>

    <div id="test2" visible="false" runat="server">
    <p>
    this is sample text.... bla bla bla
    </p>

    </div>
    </ContentTemplate>
    </asp:UpdatePanel>

    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
    <ProgressTemplate>
    <img src="../Images/pbar.gif" style="vertical-align: middle" />
    Please Wait...
    </ProgressTemplate>
    </asp:UpdateProgress>
  • #765810
    Hi

    Try this code working for me




    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
    <ProgressTemplate>
    <div class="modal">
    <div class="center">
    <img alt="" src="Images/loading6.gif" />
    </div>
    </div>
    </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div align="center">
    <h1>
    Click the button to see the UpdateProgress!</h1>
    <asp:Button ID="btnSubmit" Text="Submit" runat="server" OnClick="btnSubmit_Click" />
    </div>
    </ContentTemplate>
    </asp:UpdatePanel>


    Name : Dotnet Developer-2015
    Email Id :kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.


Sign In to post your comments