Global.asax

GlobalFilterCollection

Represents a 
class that contains all the global filters.

HandleErrorAttribute

mvc中提供了HandleErrorAttribute特性,该特性用于处理由操作方法引发的异常

AreaRegistration.RegisterAllAreas();

注册 ASP.NET MVC 应用程序中的所有区域

RouteCollection 

为 ASP.NET 路由操作提供路由的集合

RouteTable 

存储应用程序的 URL 路由

routes.IgnoreRoute(
"{resource}.aspx/{*pathInfo}");

asp.net 
3.5 mvc 框架将不会对普通页面进行路由分析,但是在处理普通web Forms页面

的时候,仍然会影响asp.net 
3.5 mvc项目的运行性能,为此设置如下:

routes.IgnoreRoute(
"{resource}.aspx/{*pathInfo}");

设置了普通页面,不需要使用路由分析,就可以提高asp.net 
3.5 mvc项目的运行性能UrlParameter 类

表示路由过程中 MvcHandler 类使用的可选参数。

默认情况下,以下路由在 Global.asax 文件中定义: 

{controller}
/{action}/{id} 

在默认路由中,controller 设置为“主页”,action 设置为“索引”,id 设置为 Optional。 如果没有值传递给 id,MvcHandler 类忽略 id 参数。 

Mola.Model.KH_CustomerEntity model 
= Mola.BLL.KH_Customer.Instance.Login(email, password);

改下代码
原文地址:https://www.cnblogs.com/shizhi57/p/2095233.html