[英]Server.Transfer + Jquery '$' is undefined
my json method works fine when i use this: 当我使用此方法时,我的json方法工作正常:
Response.Redirect("~/Default.aspx");
But when i use 但是当我使用
Server.Transfer(string.Format("~/Default.aspx");
it give me error that '$ is undefined' 它给我的错误是'$ undefined'
assume currently i am in routing.aspx page. 假设当前我在routing.aspx页面中。
i give the complete path to the jquery in head tag of the page. 我在页面的head标签中给出了jquery的完整路径。
change: 更改:
<script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
to 至
<script src="http://localhost:50847/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
i know hard code is not the good practice but i will optimize it, for now may this can help people like me. 我知道硬编码不是一种好习惯,但是我会对其进行优化,因为现在可能可以帮助像我这样的人。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.