温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:51aspx大文件上传并显示进度和上传速率示例及组建源码
当前文件:
LargeFileUpload/WebbUploadSample/Default.aspx,打开代码结构图
LargeFileUpload/WebbUploadSample/Default.aspx,打开代码结构图1<%@ Register TagPrefix="uc1" TagName="Inc_Top" Src="Inc_Top.ascx" %> 2
<%@ Register TagPrefix="uc1" TagName="Inc_Botton" Src="Inc_Botton.ascx" %> 3
<%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="True" Inherits="WebbUploadSample.WebForm1" %> 4
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 5
<HTML> 6
<HEAD> 7
<title>51aspx大文件上传显示进度条示例</title> 8
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> 9
<meta name="CODE_LANGUAGE" Content="C#"> 10
<meta name="vs_defaultClientScript" content="JavaScript"> 11
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> 12
<LINK href="Main_classic.css" type="text/css" rel="stylesheet"> 13
</HEAD> 14
<body bottomMargin="0" leftMargin="0" background="images/bg_001.jpg" topMargin="0" rightMargin="0"> 15
<form id="Form1" method="post" runat="server"> 16
<FONT> 17
<TABLE id="Table1" cellSpacing="0" borderColorDark="#000000" cellPadding="0" width="800" 18
align="center" borderColorLight="darkgray" border="0"> 19
<TR> 20
<TD colSpan="3"> 21
<TABLE id="Table2" cellSpacing="0" cellPadding="0" width="100%" border="0"> 22
<TR> 23
<TD colSpan="3"> 24
<uc1:Inc_Top id="Inc_Top1" runat="server"></uc1:Inc_Top></TD> 25
</TR> 26
<TR> 27
<TD colSpan="3" bgColor="whitesmoke"> 28
<H2>Introduction</H2> 29
<P><STRONG><EM>WebbUpload</EM></STRONG> is an ASP.NET HttpModule that allows you 30
upload file(s) from a web browser to your IIS server. It requires no client 31
side software and operates on the server via standard multipart HTML forms as 32
defined in RFC 1867.</P> 33
<DIV class="entry"> 34
<H2>Feature List</H2> 35
<UL> 36
<LI> 37
Upload file(s) up to 1GB with progress bar. 38
<LI> 39
Real-time upload progress indicator. 40
<LI> 41
Upload file size controled by <STRONG><EM>WebbUpload's</EM></STRONG> configuration 42
section in <STRONG>web.config</STRONG>, not limitted by the related 43
congiguration section in machine.config. 44
<LI> 45
Not affected by the <B>Connection Timeout</B> 46
Error. 47
<LI> 48
Based on .NET Framework completely,no client side control installation needed. 49
<LI> 50
The default <B>InputFile</B> control and <STRONG><EM>WebbUpload</EM></STRONG> can 51
work together in the same web application. 52
</LI> 53
</UL> 54
</DIV> 55
<DIV class="entry"> 56
<H2>System Requirements</H2> 57
<UL> 58
<LI> 59
OS: Windows 2000, Windows XP, Windows .NET Server 2003 Family 60
<LI> 61
Installed .NET Framework 1.x or .NET Framework 2.0</LI></UL> 62
</DIV> 63
<P><FONT face="宋体"></FONT><FONT face="宋体"></FONT> </P> 64
</TD> 65
</TR> 66
</TABLE> 67
<uc1:Inc_Botton id="Inc_Botton1" runat="server"></uc1:Inc_Botton> 68
</TD> 69
</TR> 70
</TABLE> 71
</FONT> 72
</form> 73
</body> 74
</HTML> 75




