Click here to Skip to main content
15,881,866 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 169.9K   8K   51  
Async Progress Indicator with Messages and OnComplete Event
<%@ Control
	Language="C#"
	AutoEventWireup="true"
	CodeBehind="ucStartOnServerSide.ascx.cs"
	Inherits="WebTest.ProgressBarTest.ucStartOnServerSide" %>
<%@ Register
	Assembly="hmlib.Web"
	Namespace="hmlib.Web.UI.Controls"
	TagPrefix="hmc" %>
<table>
	<tr>
		<td>Progress
		</td>
		<td>
			<hmc:ProgressBar
				ID="ProgressBar1"
				runat="server"
				Width="400px"
				MessageTargetId="TextBox1"
				ServicePath="ProgressStatus.asmx" />
		</td>
		<td>
			<asp:Button
				ID="btnStart"
				runat="server"
				Text="Start"
				OnClick="btnStart_Click"
				Width="65px" />
		</td>
	</tr>
	<tr>
		<td>
			<asp:Label
				ID="Label1"
				runat="server"
				Text="Rounds"></asp:Label>
		</td>
		<td>
			<asp:RadioButtonList
				ID="rbRounds"
				runat="server"
				RepeatDirection="Horizontal">
				<asp:ListItem
					Text="1"
					Value="1"></asp:ListItem>
				<asp:ListItem
					Text="2"
					Value="2"
					Selected="True"></asp:ListItem>
				<asp:ListItem
					Text="3"
					Value="3"></asp:ListItem>
				<asp:ListItem
					Text="4"
					Value="4"></asp:ListItem>
			</asp:RadioButtonList>
		</td>
		<td>&nbsp;
		</td>
	</tr>
	<tr>
		<td>Speed
		</td>
		<td>
			<asp:RadioButtonList
				ID="rbSpeed"
				runat="server"
				RepeatDirection="Horizontal">
				<asp:ListItem
					Text="Slow"
					Value="200" />
				<asp:ListItem
					Selected="True"
					Text="Normal"
					Value="100" />
				<asp:ListItem
					Text="Fast"
					Value="50" />
			</asp:RadioButtonList>
		</td>
		<td></td>
	</tr>
</table>
<asp:TextBox ID="TextBox1" runat="server" Rows="20" TextMode="MultiLine" Width="200px">
</asp:TextBox>

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