asp.net.ph

Page.SetFocus Method

System.Web.UI Namespace   Page Class


.NET Framework version 2.0

Sets the browser focus to the specified control.

Overload List

1. Sets the browser focus to the specified control.

2. Sets the browser focus to the control with the specified identifier.


Example

The following example demonstrates using the SetFocus method.

NOTE: This example shows how to use one of the overloaded versions of SetFocus. For other examples that might be available, see the individual overload topics.

void Page_Init ( object sender, EventArgs e ) {
   SetFocus ( searchBox );
}
  C# VB

See Also

Page Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph