Contentresult (content): returns standard text
Filecontentresult (File): returns a file.
Filestreamresult (File): returns the file stream.
Filepathresult (File): returns the file stream.
Fileresult (File): returns a file.
Javascriptresult (JavaScript): returns JavaScript and runs it on the client.
Jsonresult (JSON): Return JSON
Partialviewresult (partialview): returns a local view.
Redirecttorouteresult (redirecttoaction): Jump
Viewresult (View): displays a view (which is the most commonly used)
- Jump to the page or execute other actions
In fact, it is to jump to the action. If it is on the page, HTML. actionlink is implemented through the link. If it is on the server side, the redirecttoaction method is used.
This is to add an attribute on the action.
[Acceptverbs (httpverbs. Post)]
And the method must have a parameter: formcollection (which represents the field in the form)
This is a standard action and does not require any settings. The default value is get.
On the page, use the HTML. rendpartialview method. In controller, use the partialview method.
- ASP. net mvc open-source project
Cartrackr http://cartrackr.codeplex.com/
Codecampserver http://code.google.com/p/codecampserver/
Http://flickrxplorer.codeplex.com/
Kigg http://www.codeplex.com/Kigg
MVC storefront http://blog.wekeroad.com/mvc-storefront/
Nerddinner http://nerddinner.codeplex.com/
Oxite