<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Webb.WAVE.Controls.Upload大文件上传组件使用说明:</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="VisualStudio.HTML" name="ProgId">
<meta content="Microsoft Visual Studio .NET 7.1" name="Originator">
<style type="text/css"> <!-- .style2 {color: #0000FF}
.style5 {color: #000000}
.style9 {color: #FF0000}
td { font-size: 10pt; }
--></style>
</head>
<body>
<table width="780" border="1" cellpadding="2" cellspacing="2">
<tr>
<td colspan="3"><strong>Webb.WAVE.Controls.Upload大文件上传组件使用说明:</strong></td>
</tr>
<tr>
<td><span class="style9">类</span></td>
<td><span class="style2">方法/属性/枚举</span></td>
<td><span class="style5">说明</span></td>
</tr>
<tr>
<td>WebbUpload</td>
<td>WebbUpload ( )</td>
<td>构造函数。</td>
</tr>
<tr>
<td> </td>
<td>GetUploadFile ( System.String name )<br>
</td>
<td>返回UplaodFile实例,参数name为input/type=file的Html控件名。</td>
</tr>
<tr>
<td> </td>
<td>GetUploadFileList ( System.String name )<br>
</td>
<td>返回UplaodFileCollection实例,参数name为input/type=file的Html控件名。</td>
</tr>
<tr>
<td> </td>
<td>RegisterProgressBar ( System.Web.UI.WebControls.WebControl m_controls )<br>
</td>
<td>注册控件的进度条,注意m_controls必须为一个可以实现onclick属性的HTML控件。</td>
</tr>
<tr>
<td> </td>
<td>
RegisterProgressBar ( System.Web.UI.WebControls.Button uploadButton ,
System.Boolean causesValidation )<br>
</td>
<td>注册Button的进度条,causesValidation说明是否进行提交验证。</td>
</tr>
<tr>
<td> </td>
<td>
SetTempPath ( System.String m_path )<br>
</td>
<td>设定上传临时路径。m_path为服务 器绝对路径。
</td>
</tr>
<tr>
<td>
UploadFile</td>
<td>
UploadFile ( System.String i_name )<br>
</td>
<td>构造函数,参数i_name为input/type=file的Html控件名。</td>
</tr>
<tr>
<td> </td>
<td>SaveAs ( System.String filename )<br>
</td>
<td>保存上传的文件,filename为服务器绝对路径。</td>
</tr>
<tr>
<td> </td>
<td>string ClientFullPathName [ get]<br>
</td>
<td>只读属性,文件在客户端上的文件名。</td>
</tr>
<tr>
<td> </td>
<td>
string ContentType [ get]<br>
</td>
<td>只读属性,文件content类型。</td>
</tr>
<tr>
<td> </td>
<td>string FileName [ get]<br>
</td>
<td>只读属性,文件在服务器上的临时名。</td>
</tr>
<tr>
<td> </td>
<td>
long FileSize [ get]<br>
</td>
<td>只读属性,文件大小,字节单位。</td>
</tr>
<tr>
<td> </td>
<td>string ExtendName [ get]<br>
</td>
<td>只读属性,文件扩展名。</td>
</tr>
<tr>
<td>UploadFileCollection</td>
<td>public void Add ( Webb.WAVE.Controls.Upload.UploadFile File )<br>
</td>
<td>文件集。</td>
</tr>
<tr>
<td> </td>
<td>public virtual new void CopyTo ( System.Array array , System.Int32 index )<br>
Member of Webb.WAVE.Controls.Upload.UploadFileCollection<br>
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>public virtual new System.Collections.IEnumerator GetEnumerator ( )<br>
Member of Webb.WAVE.Controls.Upload.UploadFileCollection<br>
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>public UploadFileCollection ( )<br>
Member of Webb.WAVE.Controls.Upload.UploadFileCollection<br>
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>public virtual new int Count [ get]<br>
Member of Webb.WAVE.Controls.Upload.UploadFileCollection<br>
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>public virtual new bool IsSynchronized [ get]<br>
Member of Webb.WAVE.Controls.Upload.UploadFileCollection<br>
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>public virtual new object SyncRoot [ get]<br>
Member of Webb.WAVE.Controls.Upload.UploadFileCollection<br>
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>public const Webb.WAVE.Controls.Upload.UploadFile this [ get]<br>
Member of Webb.WAVE.Controls.Upload.UploadFileCollection<br>
</td>
<td> </td>
</tr>
<tr>
<td>WebbTextTrace
<br>
</td>
<td>public static void TraceMsg ( System.String str_traceMsg )<br>
Member of Webb.WAVE.Controls.Upload.WebbTextTrace<br>
</td>
<td>测试类,在WEB目录下生成一个TraceLog.ashx的文本文件,记录文本信息。</td>
</tr>
<tr>
<td> </td>
<td>public static void TraceMsg ( System.String str_traceMsg , System.String
str_fileName )<br>
Member of Webb.WAVE.Controls.Upload.WebbTextTrace<br>
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>public WebbTextTrace ( System.String str_traceMsg )<br>
Member of Webb.WAVE.Controls.Upload.WebbTextTrace<br>
</td>
<td>静态函数,输出文件信息到TraceLog.ashx文件里,主要用于调试。</td>
</tr>
<TR>
<TD colSpan="3"><FONT face="宋体">Web.conig配置</FONT></TD>
</TR>
<TR>
<TD colSpan="3"><p><FONT face="宋体"></FONT><configuration><br>
<FONT face="宋体"><system.web><br>
<!-- Settings of WebbUpload --><br>
<httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="1024000"
executionTimeout="900" /><br>
<httpModules><br>
<add name="WebbHttpModule" type="Webb.WAVE.Controls.Upload.WebbHttpModule,
Webb.WAVE.Controls.Upload"/><br>
</httpModules>
<br>
<httpHandlers><br>
<add verb="*" path="progress.ashx"
type="Webb.WAVE.Controls.Upload.WebbUploadHandler, Webb.WAVE.Controls.Upload"
/><br>
</httpHandlers><br>
<!-- ========================= -->
<br>
</system.web><br>
</FONT></configuration></p>
</TD>
</TR>
<TR>
<TD colSpan="3">
<P><FONT face="宋体">最后说明:</FONT></P>
<P><FONT face="宋体">1、由于时间仓促,很多事情还没有完成,所以这个组件里面可能会存在一些BUG。<BR>
</FONT><FONT face="宋体">2、此组件只用于学习交流使用,不得用于任何商业用途。否则,出现的任何后果一律由使用者本人负责。<BR>
3、关于源代码的分析(在本人的博客上),与本组件关系不大,本组件的主要核心算法与SunriseUpload.0.9.1的完全不一样。其它部份代码参了SunriseUpload.0.9.1的源码。(SunriseUpload.0.9.1的源码下载链接在我的博客上也有,请仔细阅读它的License)<BR>
4、目前不提供本组件的任何技术支持。所以暂时也不公开本人的联系方法。</FONT></P>
</TD>
</TR>
</table>
</body>
</html>