一年前在http://blog.csdn.net/jsship/archive/2007/06/05/1638712.aspx留下的疑难,偶然找到了一个案例,解决了这个疑难:
实验代码如下:
页面代码--
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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 runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server" enctype="multipart/form-data">
<div>
<input id="fileUp" name="File1" type="file" runat="server" />