I have defined the bundles and I am trying to use them in my Spark layout with the following syntax.
I am getting the following error
Dynamic visual compilation fail The name 'script' exists in the current context The name 'script' is not present in the current context. The name 'scripts' does not exist in the current context.
This is not working. What is the correct syntax for this?
Also what is the syntax to include references on the page? Like the razor we use blah.blaza
Scripts
and Styles
classes System.Web.Optimization
Namespace contains fixed objects, so you have to reference these namespace and you can use them Are there. Add it to the Spark section in your Web.config:
& lt; Add Namespace = "System.Web.Optimization" />
And then you can do this:
$ {Scripts. Renderer ("~ / js / jquery")} $ {Scripts. / Js / jqueryval ")} $ {Scripts.Renderer (" ~ / js / application ")} Use the content =" script "/>
No comments:
Post a Comment