Styles and Script in Orchard

只愿长相守 提交于 2019-12-25 07:44:03

问题


I had created a new module to my orchard application. I'm unable to add styles and script to my views through references. It is showing 404 error to the path even though the path is correct. After reviewing some articles I understood we need to provide the path with Style.Require("stylename") & Script as Script.Require("Scriptname"). While doing it in my views I'm facing the error as "Style" & "Script" not found.


回答1:


You must check the .net version for this module to be compatible with orchard version, if you using Orchard 1.10, your module must be reference .Net Framework version 4.5.2, to check it go to your project properties and see "Target Framework".



来源:https://stackoverflow.com/questions/37371106/styles-and-script-in-orchard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!