ScriptVariables.ToString
Returns the rendered JavaScript for the generated object and name. Note this method returns only the generated object, not the related code to save updates.
You can use this method with MVC Views to embedd generated JavaScript into the the View page.
Note for embedding in RazorViews use ToHtmlString()
to avoid
auto-encoding of the script block.
If provided wraps the script text with script tagsIf true doesn't previx single variable with 'var'
public string ToString(bool addScriptTags)
© West Wind Technologies, 2025 • Updated: 2025-03-08
Comment or report problem with topic