摘要: 参考:http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/adding-a-view一,Controller 中的ActionResult方法会用一个View Template生成HTML页面反馈到浏览器中:1,修改Index方法如下public ActionResult Index() { return View();}2,在Index 方法中右键,添加View视图,Views视图下的HelloWorld文件夹中生成了对应的Index.cshtml文件3,打开index.cshtml文件,并添加一行h 阅读全文
posted @ 2014-03-06 11:40 sirili 阅读(2341) 评论(1) 推荐(1) 编辑