HiddenField.Focus Method ()


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

Sets input focus to this control.

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

public override void Focus()

Exception Condition

An attempt is made to call this method.

Setting focus to a HiddenField control is not supported. A NotSupportedException is thrown if you attempt to call this method.

.NET Framework
Available since 2.0
Return to top