简体   繁体   中英

How to stop AJAX update taking place in one update panel from another update panel?

We have two update panels on our webpage. Now first update panel is having button cancel. While second update panel is having a file upload control.

Now if the user uploads a file that is going to upload in about 2 mins, and in between, say after 30 seconds the user clicks the cancel button, the upload taking place in update panel 2 should stop.

How do we achieve this ?

在更新面板标签中使用关键字mode =“ conditional” ..希望这样可以解决..

you can use 'conditional mode' in update mode. Also if the button is outside update panel you can use an update panel trigger to refresh the other update panel. http://geekswithblogs.net/ranganh/archive/2007/05/16/112526.aspx

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