解决方案 »

  1.   

    请看这个链接地址:
    http://www.cnblogs.com/akwwl/p/3184239.html
      

  2.   

    http://blog.csdn.net/dalmeeme/article/details/7187115
      

  3.   

    看了那些教程觉得FileUpload这个控件很简单,自己试了下没问题,但是好像也不是很人性化没有进度条的显示上传大文件时网页会卡顿一段时间。
      

  4.   

    那这个应该不错了吧
    http://www.michielpost.nl/Silverlight/MultiFileUploader/
      

  5.   

    看了以上几个例子,但是都是上传到本网站的服务器目录下,server.mappath. 我如果想上传到另外一个网站,怎么操作呢?比如,上传到:http://www.baidu.com/mysites/files/
      

  6.   

    使用web控件完成上传文件功能
    //上传控件设置
    <asp:FileUpload ID="FileUpload1" runat="server" />
      <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/shangchuan.JPG" 
                                onclick="ImageButton1_Click" />
    //上传程序
     protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
        {
            string serverPath = Server.MapPath("UpLoad"); //获取服务器端目录绝对路径
            if (!System.IO.Directory.Exists(serverPath)) //如果不存在该目录
            {
                System.IO.Directory.CreateDirectory(serverPath); //创建该目录
            }
            if (FileUpload1.HasFile) //判断是否选择上传的文件
            {
                int filesize = FileUpload1.PostedFile.ContentLength / 1024 / 1024;//获取上传文件的大小
                if (filesize > 8) //如果大于8M
                {
                    Page.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('只允许上传不大于8兆的文件');", true); //弹出提示信息
                    return;
                }
                else //否则
                {
                    //使用SaveAs方法将上传的文件存储到服务器中
                    FileUpload1.SaveAs(serverPath + "\\" + FileUpload1.FileName);
                    Page.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('上传成功');", true);
                }
            }
            else //如果没有选择文件
            {
                //弹出提示信息
                Page.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('请选择文件');", true);
                return;
            }
      

  7.   

    http://www.cnblogs.com/qiantuwuliang/archive/2009/09/01/1558347.html
      

  8.   

    就是 asp.net  上传文件咯  
    自己搜搜  
      

  9.   

    要上传到百度网盘么,如果是的,调用Top4Net
    添加引用top4net.dll到你的程序中http://download.csdn.net/detail/sinbas/8028465
    baidu api
    http://developer.baidu.com/wiki/index.php?title=docs/pcs/rest/file_data_apis_list#.E4.B8.8A.E4.BC.A0.E5.8D.95.E4.B8.AA.E6.96.87.E4.BB.B6
      

  10.   

    不用JS  那你可以用fileupload 撒!