Click here to Skip to main content
15,895,084 members
Articles / Web Development / HTML

Use the Asynchronous Power of ASP.NET to Create a Simple, Reusable Page for Displaying a Processing Message

Rate me:
Please Sign up or sign in to vote.
3.42/5 (24 votes)
11 Jul 20053 min read 180.6K   2.1K   79  
Use the asynchronous capabilaties of ASP.NET to inform your users when a long process is happening.
<%@ Page language="c#" Codebehind="SubmitLongProcess.aspx.cs" AutoEventWireup="false" Inherits="AsynchronousProcessing.ProcessingMessage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Submit Long Process Page</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<font style="font-family:Arial,Verdana,Helvetica;font-size:9pt;font-weight:bold;">Enter the length of time in seconds for a hypothetical process.</font><br>
			<asp:TextBox id="txtProcessLength" runat="server" Width="30px"></asp:TextBox>
			<asp:Button id="SubmitButton" runat="server" Text="Start Long Process"></asp:Button>
		</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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
I don't really have much to say at this point. I promise to update this if I come up with another article to submit.

Comments and Discussions