the difference of ViewResult and ActionResult
2012-06-05 09:19
411 查看
ActionResult is an abstract class that can have several subtypes:
a) ViewResult - Renders a specifed view to the response stream
b) PartialViewResult - Renders a specifed partial view to the response stream
c) EmptyResult - An empty response is returned
d) RedirectResult - Performs an HTTP redirection to a specifed URL
e) RedirectToRouteResult - Performs an HTTP redirection to a URL that is determined by the routing engine, based on given route data
f) JsonResult - Serializes a given ViewData object to JSON format
g) JavaScriptResult - Returns a piece of JavaScript code that can be executed on the client
h) ContentResult - Writes content to the response stream without requiring a view
i) FileContentResult - Returns a fle to the client
j) FileStreamResult - Returns a fle to the client, which is provided by a Stream
k) FilePathResult - Returns a fle to the clien
a) ViewResult - Renders a specifed view to the response stream
b) PartialViewResult - Renders a specifed partial view to the response stream
c) EmptyResult - An empty response is returned
d) RedirectResult - Performs an HTTP redirection to a specifed URL
e) RedirectToRouteResult - Performs an HTTP redirection to a URL that is determined by the routing engine, based on given route data
f) JsonResult - Serializes a given ViewData object to JSON format
g) JavaScriptResult - Returns a piece of JavaScript code that can be executed on the client
h) ContentResult - Writes content to the response stream without requiring a view
i) FileContentResult - Returns a fle to the client
j) FileStreamResult - Returns a fle to the client, which is provided by a Stream
k) FilePathResult - Returns a fle to the clien
相关文章推荐
- UISearchController Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior
- The difference of "apt-get update" and "apt-get upgrade"
- 62.View the E xhibit and examine the structure of the CUSTOMERS table.
- How to invoke the method of managed bean and render view in JSF when we are outside the lifecycle of JSF
- 112.View the Exhibit and examine the structure of the PROMOTIONS table.
- The difference of adapter pattern and bridge pattern
- What's the difference of name scope and a variable scope in tensorflow?
- The requested resource (No result defined for action org.action.LoginAction and result success) is
- The Result of an Interesting and Useful Program on Floating Numbers
- 153.View the Exhibits and examine the structures of the PRODUCTS and SALES tables.
- The difference of the type of DB type property such char,varchar,nchar and nvarchar
- Javascript Object Method Properties console.log View all methods and properties of the object
- 132.View the Exhibit and examine the structure of the SALES and PRODUCTS tables.
- 145.View the Exhibit and examine the structure of the CUSTOMERS table.
- 148.View the Exhibit and examine the structure of the PRODUCTS tables.
- the differences between DataGrid and DataList in HTML View
- The differences of Iterator and Iterable interface
- 100.View the Exhibit and examine the structure of the PROMOTIONS table.
- 120.View the Exhibits and examine the structures of the PRODUCTS, SALES, and CUSTOMERS
- 129.View the Exhibits and examine the structures of the PROMOTIONS and SALES tables.