求c#中上传文件的源代码(是做WindowsApplication用的),要有注释,我是一个菜鸟

来源:百度知道 编辑:UC知道 时间:2024/06/24 13:44:39
最好说明怎么用,因为我不会,多谢大侠了
是在本机上应用的,只是要做一个'附件',单击附件可以完成上传多次功能

OK,我有,发给你了,你吧相应的改了就行
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="fileup.aspx.cs" Inherits="fileup" %>

<!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">
<div>
<asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px">
<asp:FileUpload ID="FileUpload1" runat=&