|
ClientSideExtensionsSetDefaultButton Method
|
Registers a default button to be activated when the ENTER key is pressed inside this textbox.
Namespace: GSF.Web.UIAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.230-beta
Syntaxpublic static void SetDefaultButton(
this TextBox textbox,
Control control
)
<ExtensionAttribute>
Public Shared Sub SetDefaultButton (
textbox As TextBox,
control As Control
)
public:
[ExtensionAttribute]
static void SetDefaultButton(
TextBox^ textbox,
Control^ control
)
[<ExtensionAttribute>]
static member SetDefaultButton :
textbox : TextBox *
control : Control -> unit
GSF.Web.UI.ClientSideExtensions.SetDefaultButton = function(textbox, control);
View SourceParameters
- 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