UpdatePanelControlTrigger.FindTargetControl Method (Boolean)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Searches for the control specified in the ControlID property.

Namespace:   System.Web.UI
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

protected Control FindTargetControl(
	bool searchNamingContainers
)

Parameters

searchNamingContainers
Type: System.Boolean

A Boolean value that indicates whether to search for the control recursively in naming containers that contain the current UpdatePanel control.

Return Value

Type: System.Web.UI.Control

A control that has the ID matching the ControlID property.

Exception Condition
InvalidOperationException

The ControlID property of the UpdatePanelControlTrigger is null or empty.

- or -

The control with the specified ControlID was not found.

.NET Framework
Available since 3.5
Return to top
Show: