Asp.net(C#)多文件上传
FileUp.aspx 页面
1<%@ Page language="c#" Codebehind="FileUp.aspx.cs" AutoEventWireup="false" Inherits="TestCenter.FileUp" %>
2<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
3<HTML>
4 <HEAD>
5 <title>多文件上传</title>
6 <script language="JavaScript">
7 function addFile()
8 {
9 var str = '<INPUT type="file" size="50" NAME="File">'
10 document.getElementById('MyFile').insertAdjacentHTML("beforeEnd",str)
11 }
12 </script>
13 </HEAD>
14 <body>
15 <form id="form1" method="post" runat="server" enctype="multipart/form-data">
16 <div align="center">
17 <h3>多文件上传</h3>
18 <P id="MyFile"><INPUT type="file" size="50" NAME="File"></P>
19 <P>
20 <input type="button" value="增加(Add)" onclick="addFile()">
21 <input onclick="this.form.reset()" type="button" value="重置(ReSet)">
22 <asp:Button Runat="server" Text="开始上传" ID="UploadButton"></asp:Button>
23 </P>
24 <P>
25 <asp:Label id="strStatus" runat="server" Font-Names="宋体" Font-Bold="True" Font-Size="9pt"
26 Width="500px" BorderStyle="None" BorderColor="White">&l
相关文档:
SQLServer CodeSmith C#
bigint Int64   ......
web.config
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="mymail<you@163.com>">
......
web.config:
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="chunyou128<you@163.com>">
&n ......
关闭窗体
1.
this.btnClose.Attributes.Add("onclick", "window.close();return false;");
2.关闭本窗体间跳转到另一个页面
this.HyperLink1.NavigateUrl = "javascript:onclick=window.opener.location.assign
......
在不同版本的 IIS 上使用 ASP.NET MVC
ASP.NET MVC Framework 依赖于 URL 路由。为了利用 URL 路由,可能不得不在 Web 服务器上执行额外的配置步骤。这些步骤取决于 Internet Information Services (IIS) 的版本和应用程序的请求处理模式。
IIS 的最新版本是版本 7.0。IIS 的此版本包括在 Windows Server 2008 中。还可以 ......