Click here to Skip to main content
15,891,136 members
Articles / Web Development / HTML

Multiple file uploads with progress bar using classic ASP.NET and C#

Rate me:
Please Sign up or sign in to vote.
4.33/5 (8 votes)
1 Sep 2010CPOL4 min read 106K   6.7K   55  
In web applications, displaying a progress bar is necessary while uploading files. This article helps in creating a progress bar for single file and multi-file uploads in ASP.NET 2.0.
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="FileUpload.aspx.cs" Inherits="FileUpload.FileUpload"    %>
<%@ Register Src="~/UploadProgressBar.ascx" TagName="UploadProgressBar" TagPrefix="uc1" %>
<!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 id="Head1" runat="server">
<LINK REL=StyleSheet HREF="StyleSheet1.css" TYPE="text/css" />  

</head>
    
<body >
<form id="form1" runat="server">
<div  style="margin-left:50px; height: 305px; width: 286px;">
<fieldset style="width: 289px">
<uc1:UploadProgressBar ID="Uploader1" runat="server"   />
</fieldset>
</div>
</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
Architect
India India
I have around 9 years of experience in Microsoft technologies, .Net 2.0,3.5, Asp.net MVC developed small to medium scale products using Silverlight 2.0, Asp.net Ajax technologie and Javascript frameworks.

Comments and Discussions