HiddenField::Focus Method ()

 

Sets input focus to this control.

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

public:
virtual void Focus() override

Exception Condition
NotSupportedException

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
Show: