摘要: 上一章中我们创建了控制器HelloWorldController.cs,现在我们根据HelloWorldController来创建视图在HelloWorldController中重写Index方法public ActionResult Index() { return View(); }在view()上点击右键选择Add View出现添加视图对话,运用默认的模板,直接点击Add视图文件夹下直接出现了Views/HelloWorld/Index.cshtml这个视图文件。在图示标签<h2>下面添加<p>Hello from our View Template!</p 阅读全文
posted @ 2012-12-22 00:44 terryxym 阅读(408) 评论(0) 推荐(0) 编辑