ChildActionExtensions.RenderAction Method

Definition

Overloads

RenderAction(HtmlHelper, String)

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

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)

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

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)

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)

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)

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
<Extension()>
Public Sub RenderAction (htmlHelper As HtmlHelper, actionName As String)

Parameters

htmlHelper
HtmlHelper

The HTML helper instance that this method extends.

actionName
String

The name of the child action method to invoke.

Exceptions

The htmlHelper parameter is null.

The actionName parameter is null or empty.

The required virtual path data cannot be found.

Applies to

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
<Extension()>
Public Sub RenderAction (htmlHelper As HtmlHelper, actionName As String, routeValues As Object)

Parameters

htmlHelper
HtmlHelper

The HTML helper instance that this method extends.

actionName
String

The name of the child action method to invoke.

routeValues
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 htmlHelper parameter is null.

The actionName parameter is null or empty.

The required virtual path data cannot be found.

Applies to

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
<Extension()>
Public Sub RenderAction (htmlHelper As HtmlHelper, actionName As String, controllerName As String)

Parameters

htmlHelper
HtmlHelper

The HTML helper instance that this method extends.

actionName
String

The name of the child action method to invoke.

controllerName
String

The name of the controller that contains the action method.

Exceptions

The htmlHelper parameter is null.

The actionName parameter is null or empty.

The required virtual path data cannot be found.

Applies to

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
<Extension()>
Public Sub RenderAction (htmlHelper As HtmlHelper, actionName As String, routeValues As RouteValueDictionary)

Parameters

htmlHelper
HtmlHelper

The HTML helper instance that this method extends.

actionName
String

The name of the child action method to invoke.

routeValues
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 htmlHelper parameter is null.

The actionName parameter is null or empty.

The required virtual path data cannot be found.

Applies to

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
<Extension()>
Public Sub RenderAction (htmlHelper As HtmlHelper, actionName As String, controllerName As String, routeValues As Object)

Parameters

htmlHelper
HtmlHelper

The HTML helper instance that this method extends.

actionName
String

The name of the child action method to invoke.

controllerName
String

The name of the controller that contains the action method.

routeValues
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 htmlHelper parameter is null.

The actionName parameter is null or empty.

The required virtual path data cannot be found.

Applies to

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
<Extension()>
Public Sub RenderAction (htmlHelper As HtmlHelper, actionName As String, controllerName As String, routeValues As RouteValueDictionary)

Parameters

htmlHelper
HtmlHelper

The HTML helper instance that this method extends.

actionName
String

The name of the child action method to invoke.

controllerName
String

The name of the controller that contains the action method.

routeValues
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 htmlHelper parameter is null.

The actionName parameter is null or empty.

The required virtual path data cannot be found.

Applies to