随笔分类 -  ASP.NET MVC

摘要:记录一下,备忘。 阅读全文
posted @ 2013-10-24 17:37 虾吵吵 阅读(224) 评论(0) 推荐(0) 编辑
摘要:接上篇的GenerateCodeCore方法中View Code // Run the parser RazorParser parser = CreateParser(); Debug.Assert(parser != null); parser.Parse(input, consumer);RazorParser parser = CreateParser();中的CreateParser代码如下:View Code protected internal virtual RazorPa... 阅读全文
posted @ 2013-02-22 15:14 虾吵吵 阅读(431) 评论(0) 推荐(0) 编辑
摘要:SystemWebMvc\Mvc\VirtualPathProviderViewEngine.cs继承关系 RazorViewEngine : BuildManagerViewEngine : VirtualPathProviderViewEngineVirtualPathProviderViewEngine类FindView方法 134行stringviewPath=GetPath(controllerContext,ViewLocationFormats,AreaViewLocationFormats,"ViewLocationFormats",viewName,con 阅读全文
posted @ 2012-11-29 15:39 虾吵吵 阅读(383) 评论(0) 推荐(0) 编辑
摘要:使用ASP.NET MVC时,我们知道,要使用Views中的视图,需要在Action中写 return View();这个方法返回的返回值是一个 ViewResult,进入这个类,继承了父类ViewResultBase后只写了MasterName属性和FindView方法。不过已经开始看到到ViewEngine的踪影了。 protected override ViewEn... 阅读全文
posted @ 2012-06-02 00:53 虾吵吵 阅读(1345) 评论(0) 推荐(0) 编辑
摘要:1.ASP.NET MVC3源码下载 Codeplex http://aspnet.codeplex.com/releases 2. 创建调试用的project TestMVC3 3.添加ASP.NET MVC3源码中的下面几个project到调试用的solution中 其实刚开始做的时候是先做的第4步,然后通过vs错误提示找到下面这几个project的 System.Web.Helpers System.Web.Mvc System.Web.Razor System.Web.WebPa... 阅读全文
posted @ 2012-05-06 15:34 虾吵吵 阅读(1700) 评论(2) 推荐(2) 编辑