Script Setup Render

Posted on  by admin

Renders script tags for the following paths.

Assembly: System.Web.Optimization (in System.Web.Optimization.dll)



  • The Scripts rollout lets you specify scripts to run before and after rendering. Each script executes once at the beginning or the end of the entire rendering job for the current scene; the scripts do not run on a per-frame basis.

Return Value

Type: System.Web.IHtmlString
The HTML string containing the script tag or tags for the bundle.


Render generates multiple script tags for each item in the bundle EnableOptimizations is set to false. When optimizations are enabled, Render generates a single script tag to a version-stamped URL which represents the entire bundle.

See Also