1
我是MVC4中的newby。MVC4中的事件處理程序
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
//GlobalConfiguration.Configure(WebApiConfig.Register);
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
我想寫一個處理程序,當我寫.../Stackoverflow但總是Stackoverflow控制器工作。 如何停止調用Stackoverflow控制器?我只想打電話給處理程序。
我將下面的語句添加到web.config中。
<add name="MyHandler" verb="*" path="/Stackoverflow " type="Library.MyHander"/>