Click here to Skip to main content
15,885,244 members
Articles / Web Development / HTML5

AJAX Progress Bar for ASP.NET

Rate me:
Please Sign up or sign in to vote.
4.80/5 (33 votes)
11 Jun 2014CPOL4 min read 170.2K   8K   51  
Async Progress Indicator with Messages and OnComplete Event
<%@ Page
	Language="C#"
	AutoEventWireup="true"
	CodeBehind="ProgressBar_OnCompleteTest.aspx.cs"
	Inherits="WebTest.ProgressBarTest.ProgressBar_OnCompleteTest" %>

<%@ Register
	Assembly="hmlib.Web"
	Namespace="hmlib.Web.UI.Controls"
	TagPrefix="hmc" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title></title>
	<link href="../Reset.css"
		rel="stylesheet" />
</head>
<body>
	<form id="form1"
		runat="server">
		<asp:ScriptManager
			ID="ScriptManager1"
			runat="server">
		</asp:ScriptManager>
		<table style="height: 50%">
			<tr>
				<td></td>
				<td></td>
			</tr>
			<tr style="height: 20px">
				<td>
					<hmc:ProgressBar
						ID="ProgressBar1"
						runat="server"
						Width="400px"
						OnComplete="ProgressBar1_Complete"
						MessageTargetId="TextBox1" />
				</td>
				<td>
					<asp:Button
						ID="btnStart"
						runat="server"
						Text="Start"
						Width="80px"
						OnClick="btnStart_Click" />
				</td>
			</tr>
			<tr style="height: 20px">
				<td>
					<asp:Label
						ID="Label1"
						runat="server" />
				</td>
				<td></td>
			</tr>
		</table>
		<asp:TextBox
			ID="TextBox1"
			runat="server"
			TextMode="MultiLine"
			Width="200px"
			Rows="10"></asp:TextBox>

	</form>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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


Written By
Software Developer (Senior) FDK
Iran (Islamic Republic of) Iran (Islamic Republic of)
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions