ChildActionExtensionsRenderAction Method (HtmlHelper, String, Object)

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

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

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

Parameters

htmlHelper
Type: System.Web.MvcHtmlHelper
The HTML helper instance that this method extends.
actionName
Type: SystemString
The name of the child action method to invoke.
routeValues
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 .
Exceptions
ExceptionCondition
ArgumentNullException

The htmlHelper parameter is .

ArgumentException

The actionName parameter is or empty.

InvalidOperationException

The required virtual path data cannot be found.