简体   繁体   中英

jQuery.Load() in asp

i have a problem in using jQuery.load() i have a page that is a admin Control Panel, this page contains sidebar and this sidebar contains links, that when admin clicked on that links, i want to load the content of target page to admin panel page. for example the target page contains textboxes and a button, the admin must enter his or her details and the click on the button to save data database, but when the admin clicked on the saveButton, the page redirected to target page, how can i solve this problem.

i'm a new asp programmer, plz help, TNX.

为什么不使用JQuery Ajax方法,非常简单好用,不需要刷新页面,打开链接:)

Perhaps you can add an

<input type="hidden" value="the-page-you-want-to-target" name="target_page" />

before the save button.

Then in your ASP script you can check for

Request.QueryString("target_page")

and redirect to the right page. At least now you know which page was loaded.

Sometimes we just have to keep it simple ;)

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