Click or drag to resize
JavaScriptSetJSFunction Method (WebControl, String, String, String)
Attach a javascript function in .js file to a WebControl with arbitrary arguments

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 jsFunctionName,
	params string[] arguments
)

Parameters

controlName
Type: System.Web.UI.WebControlsWebControl
WebControl to use
htmlEventName
Type: SystemString
Name of the client event to attach (es: onmouseover, onmouseout, etc)
jsFunctionName
Type: SystemString
Name of the function in .js file to execute
arguments
Type: SystemString
List of param string to pass to .js function

Return Value

Type: Boolean

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

See Also