 | JavaScriptSetJSFunction Method (WebControl, String, String) |
Attach a simple inline javascript function to a WebControl
Namespace: ToolBooxAssembly: ToolBoox (in ToolBoox.dll) Version: 1.1.0.0 (1.1.0.0)
Syntaxpublic static bool SetJSFunction(
WebControl controlName,
string htmlEventName,
string function
)
Public Shared Function SetJSFunction (
controlName As WebControl,
htmlEventName As String,
function 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) - 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