System.Web.UI.DataSourceControl.Focus Method

Sets input focus to the control.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public override void Focus ()

Remarks

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

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0