Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Render Method
Collapse the table of content
Expand the table of content

Scripts.Render Method

Renders script tags for the following paths.

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

public static IHtmlString Render(
	params string[] paths


Type: System.String[]
Set of virtual paths for which to generate script tags.

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.

© 2015 Microsoft