AddScript
(IHtmlHelper,String) Method
AddScript (IHtmlHelper htmlHelper, String scriptPath)
Register the specified script to be added to the Layout or module's scripts.
Examples
@Html.AddScript("~/Extensions/MyModule/MyModule.js")
AddScript
(IHtmlHelper,String,Boolean) Method
AddScript (IHtmlHelper htmlHelper, String scriptPath, Boolean isAsync)
Register the specified script to be added to the Layout or module's scripts.
Examples
@Html.AddScript("~/Extensions/MyModule/MyModule.js")
AddScript
(IHtmlHelper,String,Boolean,Int32) Method
AddScript (IHtmlHelper htmlHelper, String scriptPath, Boolean isAsync, Int32 order)
Register the specified script to be added to the Layout or module's scripts.
Examples
@Html.AddScript("~/Extensions/MyModule/MyModule.js")
AddScript
(IHtmlHelper,String,Boolean,Boolean) Method
AddScript (IHtmlHelper htmlHelper, String scriptPath, Boolean isAsync, Boolean isDynamic)
Register the specified script to be added to the Layout or module's scripts.
Examples
@Html.AddScript("~/Extensions/MyModule/MyModule.js")
AddScript
(HttpContext,String,Boolean,Int32) Method
AddScript (HttpContext context, String scriptPath, Boolean isAsync, Int32 order)
Register the specified script to be added to the Layout or module's scripts.