zoukankan      html  css  js  c++  java
  • the difference of ViewResult and ActionResult Kevin

    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

  • 相关阅读:
    Demo
    Demo
    Demo
    Demo
    Demo
    【csp模拟赛6】树上统计-启发式合并,线段树合并
    【csp模拟赛6】计数--单调栈
    【csp模拟赛6】相遇--LCA
    【poj1734】Sightseeing trip--无向图最小环
    【poj2709】Painter--贪心
  • 原文地址:https://www.cnblogs.com/kfx2007/p/2536039.html
Copyright © 2011-2022 走看看