Click here to Skip to main content
15,884,353 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,
I want to display loading image while page is loading in ASP.NET
Posted
Updated 16-Oct-12 22:48pm
v2

 
Share this answer
 
If your are using Update Panel, then you can use the following code.

XML
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
            Your data and Form
</ContentTemplate>
</asp:UpdatePanel>

//Drag and Drop the UpdateProgress Control
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<img src="image_path.gif" />
</ProgressTemplate>
</asp:UpdateProgress>

//Add Extender
<asp:AlwaysVisibleControlExtender ID="UpdateProgress1_AlwaysVisibleControlExtender"
runat="server" Enabled="True" TargetControlID="UpdateProgress1" VerticalSide="Middle"
HorizontalSide="Center">
</asp:AlwaysVisibleControlExtender>
 
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