简体   繁体   中英

Server.Transfer + Jquery '$' is undefined

my json method works fine when i use this:

Response.Redirect("~/Default.aspx");

But when i use

Server.Transfer(string.Format("~/Default.aspx");

it give me error that '$ is undefined'

assume currently i am in routing.aspx page.

i give the complete path to the jquery in head tag of the page.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM