System.Web.UI.WebControls.LoginView.Focus Method

Sets input focus to a control.

Syntax

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

Remarks

The LoginView.Focus method does not set the initial focus of the Web page to the System.Web.UI.WebControls.LoginView control or to any of its child controls. Controls that are contained in the System.Web.UI.WebControls.LoginView control are created after the System.Web.UI.Control.PreRender event. To set the focus to a child control contained by the System.Web.UI.WebControls.LoginView, handle the On_PreRender and call its System.Web.UI.Control.Focus method.

Requirements

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