Click or drag to resize

ClientSideExtensionsSetDefaultButton Method

Registers a default button to be activated when the ENTER key is pressed inside this textbox.

Namespace: GSF.Web.UI
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.181-beta
Syntax
public static void SetDefaultButton(
	this TextBox textbox,
	Control control
)
View Source

Parameters

textbox  TextBox
TextBox for which the default button is to be registered.
control  Control
Button Control to be assigned as the default action handler.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TextBox. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also