asp多文件上传(转)
<html xmlns="http://www.w3.org/1999/xhtml" >
<HEAD>
<title>多文件上传 </title>
<script language="JavaScript">
function addFile()
{
var str = ' <br /> <INPUT type="file" size="50" NAME="File">'
document.getElementById('MyFile').insertAdjacentHTML("beforeEnd",str)
}
</script>
<link href="../Css/dinwei.css" rel="stylesheet" type="text/css" />
</HEAD>
<body>
<form id="form1" method="post" runat="server" enctype="multipart/form-data">
<div align="center">
<h3>多文件上传 </h3>
<P id="MyFile"> <INPUT type="file" size="50" NAME="File"> </P>
<P>
<asp:Button Runat="server" Text="开始上传" ID="UploadButton"> </asp:Button>
<input onclick="this.form.reset()" type="button" value="重置(ReSet)">
<input type="button" value="增加(Add)" onclick="addFile()">
</P>
<P>
<asp:Label id="strStatus" runat="server" Font-Names="宋体" Font-Bold="True" Font-Size="9pt"
Width="500px" BorderStyle="None" BorderColor="White"> </asp:Label>
</P>
</div>
</form>
</body>
</HTML>
protected void Page_Load(obje
相关文档:
什么是UrlRewrite?
UrlRewrite 是 将静态页面转换为动态页面的一种技术. 例如.您网站页面是 http://www.yourdomain.com/news/docread.aspx?id=123 使用UrlRewrite转换后 可以 以 http://www.yourdomain.com/news/123.html 来访问.
UrlRewrite的用处: 满足搜索引擎的要求,Google可以抓取动态页面,但是google对动态页面 ......
变量申明,命名规则与运算符
1,用三种语句来声明变量:dim ,public 与 private ,比较常用的还是 dim 。
如:<% dim a %> ;<% dim a , b , c %>
2,命名规则:
<1> 变量的第一个字符必须是字母,数字和符号都不行。
<2> 不能嵌入句点。
<3> 长度不能超过255个字符。
<4> ......
http://fjtysgzx.hpw-js.com/Photo-151469.aspx) <%@ Import Namespace="System" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Net"%>
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="gb2312" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD ......