• 大小: 0.13M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-25
  • 语言: C#
  • 标签: MVC  Ajax  上传  异步  

资源简介

MVC ajax异步上传文件例子(ajaxFileUpload)

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace MVCAJAXUpload
{
    // Note: For instructions on enabling IIS6 or IIS7 classic mode 
    // visit http://go.microsoft.com/?linkId=9394801

    public class MvcApplication : System.Web.HttpApplication
    {
        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            filters.Add(new HandleErrorAttribute());
        }

        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute(“{resource}.axd/{*pathInfo}“);

            routes.MapRoute(
                “Default“ // Route name
                “{controller}/{action}/{id}“ // URL with pa

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-01-24 20:46  MVCAJAXUpload\
     目录           0  2013-01-24 21:58  MVCAJAXUpload\MVCAJAXUpload\
     目录           0  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Content\
     文件        1005  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Content\Site.css
     目录           0  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Content\themes\
     目录           0  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Content\themes\base\
     目录           0  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Content\themes\base\images\
     文件         180  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Content\themes\base\images\ui-bg_flat_0_aaaaaa_40x100.png
     文件         178  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Content\themes\base\images\ui-bg_flat_75_ffffff_40x100.png
     文件         120  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Content\themes\base\images\ui-bg_glass_55_fbf9ee_1x400.png
     文件         105  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Content\themes\base\images\ui-bg_glass_65_ffffff_1x400.png
     文件         111  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Content\themes\base\images\ui-bg_glass_75_dadada_1x400.png
     文件         110  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Content\themes\base\images\ui-bg_glass_75_e6e6e6_1x400.png
     文件         119  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Content\themes\base\images\ui-bg_glass_95_fef1ec_1x400.png
     文件         101  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Content\themes\base\images\ui-bg_highlight-soft_75_cccccc_1x100.png
     文件        4369  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Content\themes\base\images\ui-icons_222222_256x240.png
     文件        4369  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Content\themes\base\images\ui-icons_2e83ff_256x240.png
     文件        4369  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Content\themes\base\images\ui-icons_454545_256x240.png
     文件        4369  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Content\themes\base\images\ui-icons_888888_256x240.png
     文件        4369  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Content\themes\base\images\ui-icons_cd0a0a_256x240.png
     文件       39084  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Content\themes\base\jquery-ui.css
     目录           0  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Controllers\
     文件        1043  2013-01-24 21:46  MVCAJAXUpload\MVCAJAXUpload\Controllers\HomeController.cs
     文件         105  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Global.asax
     文件        1190  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Global.asax.cs
     文件        6473  2013-01-24 21:00  MVCAJAXUpload\MVCAJAXUpload\MVCAJAXUpload.csproj
     文件        1087  2013-01-24 21:00  MVCAJAXUpload\MVCAJAXUpload\MVCAJAXUpload.csproj.user
     目录           0  2013-01-24 21:59  MVCAJAXUpload\MVCAJAXUpload\Models\
     目录           0  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Properties\
     文件        1397  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Properties\AssemblyInfo.cs
     目录           0  2013-01-24 20:46  MVCAJAXUpload\MVCAJAXUpload\Views\
............此处省略24个文件信息

评论

共有 条评论