ChildActionExtensions.RenderAction ChildActionExtensions.RenderAction Method

Definition

Overloads

RenderAction(HtmlHelper, String) RenderAction(HtmlHelper, String)

Invokes the specified child action method and renders the result inline in the parent view.

RenderAction(HtmlHelper, String, Object) RenderAction(HtmlHelper, String, Object)

Invokes the specified child action method using the specified parameters and renders the result inline in the parent view.

RenderAction(HtmlHelper, String, String) RenderAction(HtmlHelper, String, String)

Invokes the specified child action method using the specified controller name and renders the result inline in the parent view.

RenderAction(HtmlHelper, String, RouteValueDictionary) RenderAction(HtmlHelper, String, RouteValueDictionary)

Invokes the specified child action method using the specified parameters and renders the result inline in the parent view.

RenderAction(HtmlHelper, String, String, Object) RenderAction(HtmlHelper, String, String, Object)

Invokes the specified child action method using the specified parameters and controller name and renders the result inline in the parent view.

RenderAction(HtmlHelper, String, String, RouteValueDictionary) RenderAction(HtmlHelper, String, String, RouteValueDictionary)

Invokes the specified child action method using the specified parameters and controller name and renders the result inline in the parent view.

RenderAction(HtmlHelper, String) RenderAction(HtmlHelper, String)

Invokes the specified child action method and renders the result inline in the parent view.

public static void RenderAction (this System.Web.Mvc.HtmlHelper htmlHelper, string actionName);
static member RenderAction : System.Web.Mvc.HtmlHelper * string -> unit
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

actionName
String String

The name of the child action method to invoke.

Exceptions

The actionName parameter is null or empty.

The required virtual path data cannot be found.

RenderAction(HtmlHelper, String, Object) RenderAction(HtmlHelper, String, Object)

Invokes the specified child action method using the specified parameters and renders the result inline in the parent view.

public static void RenderAction (this System.Web.Mvc.HtmlHelper htmlHelper, string actionName, object routeValues);
static member RenderAction : System.Web.Mvc.HtmlHelper * string * obj -> unit
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

actionName
String String

The name of the child action method to invoke.

routeValues
Object Object

An object that contains the parameters for a route. You can use routeValues to provide the parameters that are bound to the action method parameters. The routeValues parameter is merged with the original route values and overrides them.

Exceptions

The actionName parameter is null or empty.

The required virtual path data cannot be found.

RenderAction(HtmlHelper, String, String) RenderAction(HtmlHelper, String, String)

Invokes the specified child action method using the specified controller name and renders the result inline in the parent view.

public static void RenderAction (this System.Web.Mvc.HtmlHelper htmlHelper, string actionName, string controllerName);
static member RenderAction : System.Web.Mvc.HtmlHelper * string * string -> unit
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

actionName
String String

The name of the child action method to invoke.

controllerName
String String

The name of the controller that contains the action method.

Exceptions

The actionName parameter is null or empty.

The required virtual path data cannot be found.

RenderAction(HtmlHelper, String, RouteValueDictionary) RenderAction(HtmlHelper, String, RouteValueDictionary)

Invokes the specified child action method using the specified parameters and renders the result inline in the parent view.

public static void RenderAction (this System.Web.Mvc.HtmlHelper htmlHelper, string actionName, System.Web.Routing.RouteValueDictionary routeValues);
static member RenderAction : System.Web.Mvc.HtmlHelper * string * System.Web.Routing.RouteValueDictionary -> unit
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

actionName
String String

The name of the child action method to invoke.

routeValues
RouteValueDictionary RouteValueDictionary

A dictionary that contains the parameters for a route. You can use routeValues to provide the parameters that are bound to the action method parameters. The routeValues parameter is merged with the original route values and overrides them.

Exceptions

The actionName parameter is null or empty.

The required virtual path data cannot be found.

RenderAction(HtmlHelper, String, String, Object) RenderAction(HtmlHelper, String, String, Object)

Invokes the specified child action method using the specified parameters and controller name and renders the result inline in the parent view.

public static void RenderAction (this System.Web.Mvc.HtmlHelper htmlHelper, string actionName, string controllerName, object routeValues);
static member RenderAction : System.Web.Mvc.HtmlHelper * string * string * obj -> unit
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

actionName
String String

The name of the child action method to invoke.

controllerName
String String

The name of the controller that contains the action method.

routeValues
Object Object

An object that contains the parameters for a route. You can use routeValues to provide the parameters that are bound to the action method parameters. The routeValues parameter is merged with the original route values and overrides them.

Exceptions

The actionName parameter is null or empty.

The required virtual path data cannot be found.

RenderAction(HtmlHelper, String, String, RouteValueDictionary) RenderAction(HtmlHelper, String, String, RouteValueDictionary)

Invokes the specified child action method using the specified parameters and controller name and renders the result inline in the parent view.

public static void RenderAction (this System.Web.Mvc.HtmlHelper htmlHelper, string actionName, string controllerName, System.Web.Routing.RouteValueDictionary routeValues);
static member RenderAction : System.Web.Mvc.HtmlHelper * string * string * System.Web.Routing.RouteValueDictionary -> unit
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

actionName
String String

The name of the child action method to invoke.

controllerName
String String

The name of the controller that contains the action method.

routeValues
RouteValueDictionary RouteValueDictionary

A dictionary that contains the parameters for a route. You can use routeValues to provide the parameters that are bound to the action method parameters. The routeValues parameter is merged with the original route values and overrides them.

Exceptions

The actionName parameter is null or empty.

The required virtual path data cannot be found.

Applies to