Click here to Skip to main content
15,915,739 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi Friends,

Can anyone give me an example of AJAx updatePanel and updateProgress ...

I have a UpdatePanel in that one gridView to load the gridview it is taking some time...

so until the gridview to be loaded i want to display a waiting image or text.
Posted

Hello friend you can refer this url..............................Ajax Updated panel and progress bar[^]
 
Share this answer
 
Comments
Rockstar_ 5-Jun-12 1:30am    
dear friend,
here i found in all the examples...
manually we r setting the sleep() time...
but i want the waiting image should be visible depending on the load time taken for the gridview.
Modi Mayank 5-Apr-15 7:04am    
The link above is broken. Here is the simple way to use ajax with update panel and progress bar in .net.
here is simple example

XML
<asp:Panel ID="Panel6" runat="server" Height="50px" Style="z-index: 100; left: 10px;
            position: absolute; top: 10px" Width="125px">
            <asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="1">
                <ProgressTemplate>
                    <span style="color: #ff00ff">
                        <asp:Image ID="Image1" runat="server" ImageUrl="~/images/spinner.gif" Width="32px" /></span>
                </ProgressTemplate>
            </asp:UpdateProgress>
        </asp:Panel>


now add script manager and update panel


XML
<asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpPanel1" runat="server">
            <ContentTemplate>



now when page is post back update progress bar show the image.
 
Share this answer
 
Comments
Rockstar_ 5-Jun-12 1:32am    
can u give me the code behind code...
Rockstar_ 5-Jun-12 1:33am    
plz refer my comment for the 1st solution

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