c# 的 WEB 开发的问题 ,
现在我想上传一些附件,想实现类似 126 邮箱发信的功能,我截了个图,大约就是要实现这个功能,可以在页面上填多个附件,也可以删除刚上传的附件。 哪个高手帮我一下,分什么的都好说,帮我解决问问题,要多少分都有。

解决方案 »

  1.   


    转别人的 希望对你有帮助
    http://blog.csdn.net/yunggood/archive/2009/01/12/3761970.aspx
      

  2.   


    转别人的 希望对你有帮助
    http://blog.csdn.net/yunggood/archive/2009/01/12/3761970.aspx
      

  3.   

    http://zhidao.baidu.com/question/16742523.html
      

  4.   

    <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" ValidateRequest="false" %><!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>Untitled Page</title>
        <script type="text/javascript">
        //客户端添加附近
        function addFile(){
            var str='<input type="file" name="File"/><input type="button" value="Remove" onclick="remove(this)"/><br/>';
            document.all.files.insertAdjacentHTML("beforeEnd",str);
        }
        //客户端删除附近
        function remove(obj){
            obj.style.display="none";
            obj.nextSibling.style.display="none";
            obj.previousSibling.style.display="none";
            obj.previousSibling.disabled="disabled";
        }    </script>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
           
        <div id="files">
        <%--此处必须有一个asp.net的服务器FileUpload控件--%>
            多文件上传<br />
        <asp:FileUpload ID="FileUpload1" runat="server" /><input type="button" value="Remove" onclick="remove(this)"/><br />
        </div>
            <input id="Button1" type="button" value="Add" onclick="addFile()"/>
            <input id="Button2" type="button" value="Reset" onclick="this.form.reset()" />
            <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="Upload" CausesValidation="False" /></div>
        </form>
    </body>
    </html>
      

  5.   

    http://www.cnblogs.com/zhmore/articles/1151816.html
      

  6.   


     gengxin_914 
    星星
    我不想要你这种方式的, 你那个是每点一次添加按钮,都
    新加一个 FileUpload 控件,我想要的是类似我们发邮件时候,添加附件的功能,,填一个附件,在下面显示出来 ,然后还可以删除这个附件。这样的功能,   图片我实在是弄不出来了,  顶。
      

  7.   

    参考下这个
    http://www.cnblogs.com/cloudgamer/archive/2008/10/23/1314766.html