如何使用空模板创建MVC4应用程序? [英] How to create MVC4 application using empty template?

查看:59
本文介绍了如何使用空模板创建MVC4应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我使用Razor在mvc4中创建了空应用程序。然后我收到错误无法找到资源。我尝试了很多方法,但仍然有错误。如果有人知道请告诉我。

Hi,
I have created Empty Application in mvc4 using Razor.Then i got error "Resourse cannot be found". I tried lot of ways but still got error. If any one knows Please let me know.

推荐答案

你可以在google上搜索



查看以下链接。







https://www.google.co。 in /?gws_rd = cr& ei = xtiyUvLZK4eFrAf7zYHQAg #q =如何+ + +创建+ MVC + 4 +应用+使用+空+模板%3F& safe = active& spell = 1 [ ^ ]



对ASP.NET MVC 4的基本理解 [ ^ ]
You can Search on google

check following links.



https://www.google.co.in/?gws_rd=cr&ei=xtiyUvLZK4eFrAf7zYHQAg#q=How+to+create+MVC+4+application+using+empty+template%3F&safe=active&spell=1[^]

Basic Understanding On ASP.NET MVC 4[^]


首先检查是否添加了控制器,并在控制器中使用返回View()/ return RedirectToAction()定义了action方法。如果这样做,请为操作方法添加视图,并在视图中添加用户想要查看的内容。确保已向其添加控制器操作
First check if the controller is added , and in the controller you have the action method defined with a return View()/return RedirectToAction(). If this is done add a view for the action method and in the view add whatever the user wants to view. Make sure you have added Controller and Action to it.


这篇关于如何使用空模板创建MVC4应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆