• 大小: 0.52M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-30
  • 语言: JavaScript
  • 标签: Ajax  上传  a  

资源简介

asp.net mvc 架构下,使用ajax异步上传附件,单个文件上传

资源截图

代码片段和文件信息

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

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

     文件      85888  2016-11-18 16:57  MVCAJAXUpload\.vs\config\applicationhost.config

    ..A..H.     24064  2016-11-18 16:57  MVCAJAXUpload\.vs\MVCAJAXUpload\v14\.suo

     文件       6677  2013-01-24 20:48  MVCAJAXUpload\Backup\MVCAJAXUpload\ajaxfileupload.js

     文件       1005  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Content\Site.css

     文件        180  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Content\themes\base\images\ui-bg_flat_0_aaaaaa_40x100.png

     文件        178  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Content\themes\base\images\ui-bg_flat_75_ffffff_40x100.png

     文件        120  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Content\themes\base\images\ui-bg_glass_55_fbf9ee_1x400.png

     文件        105  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Content\themes\base\images\ui-bg_glass_65_ffffff_1x400.png

     文件        111  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Content\themes\base\images\ui-bg_glass_75_dadada_1x400.png

     文件        110  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Content\themes\base\images\ui-bg_glass_75_e6e6e6_1x400.png

     文件        119  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Content\themes\base\images\ui-bg_glass_95_fef1ec_1x400.png

     文件        101  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Content\themes\base\images\ui-bg_highlight-soft_75_cccccc_1x100.png

     文件       4369  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Content\themes\base\images\ui-icons_222222_256x240.png

     文件       4369  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Content\themes\base\images\ui-icons_2e83ff_256x240.png

     文件       4369  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Content\themes\base\images\ui-icons_454545_256x240.png

     文件       4369  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Content\themes\base\images\ui-icons_888888_256x240.png

     文件       4369  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Content\themes\base\images\ui-icons_cd0a0a_256x240.png

     文件      39084  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Content\themes\base\jquery-ui.css

     文件       1043  2013-01-24 21:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Controllers\HomeController.cs

     文件        105  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Global.asax

     文件       1190  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Global.asax.cs

     文件     248235  2013-01-24 20:48  MVCAJAXUpload\Backup\MVCAJAXUpload\jquery-1.7.1.js

     文件       6473  2013-01-24 21:00  MVCAJAXUpload\Backup\MVCAJAXUpload\MVCAJAXUpload.csproj

     文件       1087  2013-01-24 21:00  MVCAJAXUpload\Backup\MVCAJAXUpload\MVCAJAXUpload.csproj.user

     文件       1397  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Properties\AssemblyInfo.cs

     文件       2390  2013-01-24 21:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Views\Home\Index.cshtml

     文件        210  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Views\Shared\Error.cshtml

     文件        314  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Views\Shared\_Layout.cshtml

     文件       2873  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Views\Web.config

     文件         55  2013-01-24 20:46  MVCAJAXUpload\Backup\MVCAJAXUpload\Views\_ViewStart.cshtml

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

评论

共有 条评论