Click or drag to resize

EAPCtrlUtilsOnClickAppend Method (TextBox, String, String)

Append the specified javascript to the textbox's onclick script, if any.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static string OnClickAppend(
	this TextBox txt,
	string click,
	string exclusion = null
)

Parameters

txt
Type: System.Web.UI.WebControlsTextBox
The textbox.
click
Type: SystemString
The onclick javascript to append.
exclusion (Optional)
Type: SystemString
If specified, do not append script if the textbox's existing onclick script includes the exclusion string.

Return Value

Type: String
The resulting script, or null if the textbox is null or the provided script is null/blank.

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