ChildActionExtensionsRenderAction Method (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.

Namespace:   System.Web.Mvc.Html
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
<[%$TOPIC/ee703490_en-us_VS_118_1_0_0_0_0%]> _
Public Shared Sub RenderAction ( _
	htmlHelper As [%$TOPIC/ee703490_en-us_VS_118_1_0_0_0_1%], _
	actionName As [%$TOPIC/ee703490_en-us_VS_118_1_0_0_0_2%], _
	controllerName As [%$TOPIC/ee703490_en-us_VS_118_1_0_0_0_3%], _
	routeValues As [%$TOPIC/ee703490_en-us_VS_118_1_0_0_0_4%] _
Dim htmlHelper As [%$TOPIC/ee703490_en-us_VS_118_1_0_1_0_0%] 
Dim actionName As [%$TOPIC/ee703490_en-us_VS_118_1_0_1_0_1%] 
Dim controllerName As [%$TOPIC/ee703490_en-us_VS_118_1_0_1_0_2%] 
Dim routeValues As [%$TOPIC/ee703490_en-us_VS_118_1_0_1_0_3%] 

htmlHelper.RenderAction(actionName, _
	controllerName, routeValues)
public static void RenderAction(
	this [%$TOPIC/ee703490_en-us_VS_118_1_0_2_0_0%] htmlHelper,
	[%$TOPIC/ee703490_en-us_VS_118_1_0_2_0_1%] actionName,
	[%$TOPIC/ee703490_en-us_VS_118_1_0_2_0_2%] controllerName,
	[%$TOPIC/ee703490_en-us_VS_118_1_0_2_0_3%] routeValues
static void RenderAction(
	[%$TOPIC/ee703490_en-us_VS_118_1_0_3_0_1%]^ htmlHelper, 
	[%$TOPIC/ee703490_en-us_VS_118_1_0_3_0_2%]^ actionName, 
	[%$TOPIC/ee703490_en-us_VS_118_1_0_3_0_3%]^ controllerName, 
	[%$TOPIC/ee703490_en-us_VS_118_1_0_3_0_4%]^ routeValues
static member RenderAction : 
        htmlHelper:[%$TOPIC/ee703490_en-us_VS_118_1_0_4_0_0%] * 
        actionName:[%$TOPIC/ee703490_en-us_VS_118_1_0_4_0_1%] * 
        controllerName:[%$TOPIC/ee703490_en-us_VS_118_1_0_4_0_2%] * 
        routeValues:[%$TOPIC/ee703490_en-us_VS_118_1_0_4_0_3%] -> unit
public static function RenderAction(
	htmlHelper : [%$TOPIC/ee703490_en-us_VS_118_1_0_5_0_0%], 
	actionName : [%$TOPIC/ee703490_en-us_VS_118_1_0_5_0_1%], 
	controllerName : [%$TOPIC/ee703490_en-us_VS_118_1_0_5_0_2%], 
	routeValues : [%$TOPIC/ee703490_en-us_VS_118_1_0_5_0_3%]


Type: System.Web.MvcHtmlHelper
The HTML helper instance that this method extends.
Type: SystemString
The name of the child action method to invoke.
Type: SystemString
The name of the controller that contains the action method.
Type: SystemObject
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.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HtmlHelper. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

The htmlHelper parameter is .


The actionName parameter is or empty.


The required virtual path data cannot be found.