摘要: ASP.NET MVC2 修改视图的默认路径步骤:1、编写继承自WebFormViewEngine的类,重写视图路径2、在Application_Start()中添加语句:ViewEngines.Engines.Clear();ViewEngines.Engines.Add(new MvcViewEngine()); 1 protected void Application_Start() 2 { 3 AreaRegistration.RegisterAllAreas(); 4 ViewEngines.Engines.Clear(); 5 ViewEngines.Eng... 阅读全文
posted @ 2013-10-11 16:53 liyuzhao 阅读(3786) 评论(0) 推荐(0) 编辑