Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DataSourceControl.Focus Method

Sets input focus to the control.

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

'Declaration
Public Overrides Sub Focus

ExceptionCondition
NotSupportedException

An attempt was made to call the Focus method.

Because the DataSourceControl control has no visual rendering, calling the Focus method on it throws a NotSupportedException exception.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft