-->
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShowUpdateProgress.aspx.cs" Inherits="LearnAsp.Net.ControlDemo.UpdateProgress.ShowUpdateProgress" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Show UpdateProgress</title> <style type="text/css"> .progress { font-family: Arial; position: absolute; background-color: lightyellow; border: solid 2px red; padding: 5px; } </style> </head> <body style="font-size: larger;background-color:#00f8ff21;"> <form id="form1" runat="server"> <div> <marquee> <h3>Retrieving content...</h3></marquee> <asp:ScriptManager ID="ScriptManager1" runat="server" /> <asp:UpdatePanel ID="up1" runat="server"> <ContentTemplate> <%= DateTime.Now.ToString("T") %> <asp:Button ID="btnSubmit" style="font-size: larger;" Text="Submit" runat="server" OnClick="btnSubmit_Click" /> </ContentTemplate> </asp:UpdatePanel> <asp:UpdateProgress ID="progress1" AssociatedUpdatePanelID="up1" runat="server"> <ProgressTemplate> <div class="progress"> <asp:Image ID="imgProgress" ImageUrl="Loading.gif" runat="server" /> <B> Retrieving content...</B> </div> </ProgressTemplate> </asp:UpdateProgress> </div> </form> </body> </html>
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace LearnAsp.Net.ControlDemo.UpdateProgress { public partial class ShowUpdateProgress : System.Web.UI.Page { protected void btnSubmit_Click(object sender, EventArgs e) { System.Threading.Thread.Sleep(5000); } } }
Thanks for reading Asp.Net UpdateProgress Control
Please do not enter any spam link in the comment box.
No comments:
Post a Comment
Please do not enter any spam link in the comment box.