HtmlScriptExtensions.StyleBundle method
namespace: Serenity.Web assembly: Serenity.Net.Web
Renders individual link elements for all CSS files in a bundle if bundling is disabled, and renders a single link element containing the bundle URL if it is enabled.
public static HtmlString StyleBundle(this IHtmlHelper helper, string bundleKey)
| parameter | description |
|---|---|
| helper | HTML helper |
| bundleKey | Bundle key |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | Helper or bundleKey is null |
See Also
- class HtmlScriptExtensions