Click or drag to resize
JavaScriptSetJSFunction Method (WebControl, String, String)
Attach a simple inline javascript function to a WebControl

Namespace: ToolBoox
Assembly: ToolBoox (in ToolBoox.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
public static bool SetJSFunction(
	WebControl controlName,
	string htmlEventName,
	string function
)

Parameters

controlName
Type: System.Web.UI.WebControlsWebControl
WebControl to use
htmlEventName
Type: SystemString
Name of the client event to attach (es: onmouseover, onmouseout, etc)
function
Type: SystemString
Function declaration (es: "window.alert('System Error');"), indication "javascript:" before function not required

Return Value

Type: Boolean

[Missing <returns> documentation for "M:ToolBoox.JavaScript.SetJSFunction(System.Web.UI.WebControls.WebControl,System.String,System.String)"]

See Also