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

资源简介

asp.net mvc ajax 读取服务器两种方式实例以及 ajax post方式检测用户名是否可用实例

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace AjaxMvcDemo
{
    // 注意: 有关启用 IIS6 或 IIS7 经典模式的说明,
    // 请访问 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“ // 路由名称
                “{controller}/{act

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-01-01 20:43  AjaxMvcDemo\
     文件         923  2012-12-31 17:19  AjaxMvcDemo.sln
     文件       14145  2013-01-01 20:50  AjaxMvcDemo\AjaxMvcDemo.csproj
     文件        1087  2013-01-01 20:50  AjaxMvcDemo\AjaxMvcDemo.csproj.user
     目录           0  2012-12-31 17:18  AjaxMvcDemo\App_Data\
     目录           0  2013-01-01 20:52  AjaxMvcDemo\bin\
     文件        8192  2013-01-01 20:52  AjaxMvcDemo\bin\AjaxMvcDemo.dll
     文件       15872  2013-01-01 20:52  AjaxMvcDemo\bin\AjaxMvcDemo.pdb
     文件     1118296  2012-12-31 17:19  AjaxMvcDemo\bin\Entityframework.dll
     文件     1142742  2012-12-31 17:19  AjaxMvcDemo\bin\Entityframework.xml
     文件       45416  2012-12-31 17:19  AjaxMvcDemo\bin\Microsoft.Web.Infrastructure.dll
     文件      130408  2012-12-31 17:19  AjaxMvcDemo\bin\System.Web.Helpers.dll
     文件       48745  2012-12-31 17:19  AjaxMvcDemo\bin\System.Web.Helpers.xml
     文件      445280  2012-12-31 17:19  AjaxMvcDemo\bin\System.Web.Mvc.dll
     文件      777665  2012-12-31 17:19  AjaxMvcDemo\bin\System.Web.Mvc.xml
     文件      270928  2012-12-31 17:19  AjaxMvcDemo\bin\System.Web.Providers.dll
     文件      178536  2012-12-31 17:19  AjaxMvcDemo\bin\System.Web.Razor.dll
     文件       90485  2012-12-31 17:19  AjaxMvcDemo\bin\System.Web.Razor.xml
     文件       25960  2012-12-31 17:19  AjaxMvcDemo\bin\System.Web.WebPages.Deployment.dll
     文件         967  2012-12-31 17:19  AjaxMvcDemo\bin\System.Web.WebPages.Deployment.xml
     文件      136552  2012-12-31 17:19  AjaxMvcDemo\bin\System.Web.WebPages.dll
     文件       37224  2012-12-31 17:19  AjaxMvcDemo\bin\System.Web.WebPages.Razor.dll
     文件        6890  2012-12-31 17:19  AjaxMvcDemo\bin\System.Web.WebPages.Razor.xml
     文件       70721  2012-12-31 17:19  AjaxMvcDemo\bin\System.Web.WebPages.xml
     目录           0  2013-01-01 20:52  AjaxMvcDemo\bin\zh-Hans\
     文件       71256  2012-12-31 17:19  AjaxMvcDemo\bin\zh-Hans\Entityframework.resources.dll
     文件       15952  2012-12-31 17:19  AjaxMvcDemo\bin\zh-Hans\System.Web.Providers.resources.dll
     目录           0  2012-12-31 17:19  AjaxMvcDemo\Content\
     文件        1054  2012-12-31 17:18  AjaxMvcDemo\Content\Site.css
     目录           0  2012-12-31 17:19  AjaxMvcDemo\Content\themes\
     目录           0  2012-12-31 17:19  AjaxMvcDemo\Content\themes\base\
............此处省略109个文件信息

评论

共有 条评论