• 大小: 0.42M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 下载  

资源简介

asp.net 批量上传文件(vs2010)

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using Uploadify_Simple_ASPNET;

public partial class Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender EventArgs e)
    {
        //订阅文件上传事件(目前UploadEvent事件是静态的)
        UploadifyControl.UploadEvent += (HttpPostedFile file) =>
            {
                //上传操作业务处理   开始
                string uploadPath = HttpContext.Current.Server.MapPath(“~\\uploadFiles\\“);
                if (!Directory.Exists(uploadPath))
                {
                    Directory.CreateDirectory(uploadPath);
                }
                file.SaveAs(uploadPath + file.FileName);
                //上传操作业务处理 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     173056  2013-01-30 00:10  Source and Samples\Test\Bin\Uploadify_Simple_ASPNET.dll

     文件        136  2013-01-30 00:10  Source and Samples\Test\Bin\Uploadify_Simple_ASPNET.dll.refresh

     文件      26112  2013-01-30 00:10  Source and Samples\Test\Bin\Uploadify_Simple_ASPNET.pdb

     文件       1393  2013-01-30 00:17  Source and Samples\Test\Default2.aspx

     文件       1314  2013-01-29 23:26  Source and Samples\Test\Default2.aspx.cs

     文件        385  2013-01-26 17:27  Source and Samples\Test\image.png

    ..A.SH.      8704  2013-01-11 15:22  Source and Samples\Test\uploadFiles\Thumbs.db

     文件        549  2013-01-29 21:50  Source and Samples\Test\web.config

     文件     173568  2013-01-30 00:10  Source and Samples\Uploadify_Simple_ASP.NET\bin\Debug\Uploadify_Simple_ASPNET.dll

     文件      32256  2013-01-30 00:10  Source and Samples\Uploadify_Simple_ASP.NET\bin\Debug\Uploadify_Simple_ASPNET.pdb

     文件     173056  2013-01-30 00:10  Source and Samples\Uploadify_Simple_ASP.NET\bin\Release\Uploadify_Simple_ASPNET.dll

     文件      26112  2013-01-30 00:10  Source and Samples\Uploadify_Simple_ASP.NET\bin\Release\Uploadify_Simple_ASPNET.pdb

     文件      93637  2013-01-11 16:12  Source and Samples\Uploadify_Simple_ASP.NET\jquery-1.8.3.min.js

     文件      46283  2013-01-11 16:12  Source and Samples\Uploadify_Simple_ASP.NET\jquery.uploadify-3.1.min.js

     文件       5824  2013-01-30 00:10  Source and Samples\Uploadify_Simple_ASP.NET\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       1743  2013-01-30 00:10  Source and Samples\Uploadify_Simple_ASP.NET\obj\Debug\Uploadify_Simple_ASPNET.csproj.FileListAbsolute.txt

     文件     173568  2013-01-30 00:10  Source and Samples\Uploadify_Simple_ASP.NET\obj\Debug\Uploadify_Simple_ASPNET.dll

     文件      32256  2013-01-30 00:10  Source and Samples\Uploadify_Simple_ASP.NET\obj\Debug\Uploadify_Simple_ASPNET.pdb

     文件       5828  2013-01-30 00:11  Source and Samples\Uploadify_Simple_ASP.NET\obj\Release\DesignTimeResolveAssemblyReferencesInput.cache

     文件        596  2013-01-30 00:10  Source and Samples\Uploadify_Simple_ASP.NET\obj\Release\Uploadify_Simple_ASPNET.csproj.FileListAbsolute.txt

     文件     173056  2013-01-30 00:10  Source and Samples\Uploadify_Simple_ASP.NET\obj\Release\Uploadify_Simple_ASPNET.dll

     文件      26112  2013-01-30 00:10  Source and Samples\Uploadify_Simple_ASP.NET\obj\Release\Uploadify_Simple_ASPNET.pdb

     文件       1911  2013-01-29 22:41  Source and Samples\Uploadify_Simple_ASP.NET\Properties\AssemblyInfo.cs

     文件       1012  2013-01-29 22:48  Source and Samples\Uploadify_Simple_ASP.NET\uploadHandler.ashx

     文件       2960  2013-01-11 16:12  Source and Samples\Uploadify_Simple_ASP.NET\uploadify-cancel.png

     文件       2536  2013-01-26 16:53  Source and Samples\Uploadify_Simple_ASP.NET\uploadify.css

     文件      12675  2013-01-11 16:12  Source and Samples\Uploadify_Simple_ASP.NET\uploadify.swf

     文件      18150  2013-01-29 23:18  Source and Samples\Uploadify_Simple_ASP.NET\UploadifyControl.cs

     文件       2764  2013-01-29 21:47  Source and Samples\Uploadify_Simple_ASP.NET\Uploadify_Simple_ASPNET.csproj

     文件       2324  2013-01-14 14:27  Source and Samples\Uploadify_Simple_ASPNET.sln

............此处省略18个文件信息

评论

共有 条评论