Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

FindTargetControl Method (searchNamingContainers)

Searches for the control specified in the ControlID property.

Syntax

CSharp

protected Control FindTargetControl (
	bool searchNamingContainers
)

VisualBasic

Protected Function FindTargetControl ( _
	searchNamingContainers As Boolean _
) As Control

ManagedCPlusPlus

protected:
Control^ FindTargetControl (
	bool searchNamingContainers
)

JSharp

protected Control FindTargetControl (
	boolean searchNamingContainers
)

Parameters

searchNamingContainers (Boolean)

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

Return Value

Return Value

A control that has the ID matching the ControlID property.

Exceptions

ExceptionCondition
InvalidOperationException

The ControlID property of the UpdatePanelControlTrigger is null or empty.

- or -

The control with the specified ControlID was not found.

Assembly: System.Web.Extensions (Module: System.Web.Extensions)