 | JavaScriptSetJSFunction Method (WebControl, String, String, String) |
Attach a javascript function in .js file to a WebControl with arbitrary arguments
Namespace: ToolBooxAssembly: ToolBoox (in ToolBoox.dll) Version: 1.1.0.0 (1.1.0.0)
Syntaxpublic static bool SetJSFunction(
WebControl controlName,
string htmlEventName,
string jsFunctionName,
params string[] arguments
)
Public Shared Function SetJSFunction (
controlName As WebControl,
htmlEventName As String,
jsFunctionName As String,
ParamArray arguments As String()
) As Boolean
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