且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在mvc4中创建一个mvc Web应用程序

更新时间:2023-11-24 10:36:10

发布这些网站的链接不是一个好习惯。这也不能被认为是如何创建像.....的网站的问题吗?定义具体问题。



什么比 [ ^ ],你会找到帮助你入门的教程,视频和示例。



JAFC


Pls some one tell that how to develop a new mvc application in .net mvc
i am so new to mvc and i want to use wcf also in this application.

I seen some web site which developed on mvc the links are:--

[Edit]: Spam links removed

Pls some one tell that how to develop these type of application in mvc4.
Pls some one tell.....

Posting links to such websites is not a good practice. Also this cant be considered as PROBLEM that how to create website like.....? Define specific problems.

What can be easier than Intro to ASP.NET MVC 4[^]?


Hello,

First of all you need to know what MVC is.

Model-View-Controller (MVC) is a pattern that was introduced back in 1979.

The primary goal of MVC is splitting the application in distinct pieces—the model, the view, and the controller. The model refers to state of the application, wraps the application’s functionalities, and notifies state changes to the view. The view refers to the generation of any graphical elements displayed to the user and captures and handles any user gestures. The controller maps user gestures to actions on the model and selects the next view.



ASP.NET MVC is just an implementation of the Web variation of MVC known as Model2.

In a Model2 application, requests flow from the browser directly to the controller (via a HTTP handler). The user interface of a Model2 application offers HTML input elements and all of them cause a link to be followed and a HTTP post. On the Web server the request is captured and transformed into a method call on the selected controller. As the controller’s method returns, the controller orders the view to render out to HTML. The view receives fresh data for its response directly from the controller. The output of the view is delivered to the front controller and sent back to the browser.

In Model2, we can really say that the controller is the entry point in the flow and the view is extremely thin and passive—except for some JavaScript you may insert.

Please visit this site http://www.asp.net/mvc/overview/getting-started[^], you will find tutorials, vídeos and samples that help you get started.

JAFC