[英]Master page and jquery issue
When I keep my reference to jquery and other javascript code and tags out side of the ContentPlaceholder in master page then jquery works but not inside it. 当我将对jquery和其他javascript代码和标记的引用保留在母版页的ContentPlaceholder之外时,jquery可以工作,但不能在其中进行。 but the problem is that when I keep the javacript script tags outside of the contentplaceholder then the the error saying invalid code blacks <% %> appears.. What to do?
但是问题是,当我将javacript脚本标记保留在contentplaceholder之外时,会出现错误消息,提示无效代码黑<%%>。该怎么办? I used Scriptmanager to load jquery but no use..
我用Scriptmanager加载了jQuery,但是没有用。
在内容所有者之前/之外尝试此操作
<script src="<%# Page.ResolveUrl("~")%>jquery/jq.js" type="text/javascript"></script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.