English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

with asp.net i am implementing the following: when the user clicks the asp button, a javascript confirm box appears. Now, I need to transfer the user's response back to my server code. I am achieving this using a hidden field (where the value of the hidden field changes according to the user's response). My problem is that the HiddenField's value does not change until i "re-click" the button (when the page is posted back). I want to know if there's a way to update the value of the hidden field in my server code without having to perform a postback (by re-clicking the button)

2007-01-30 21:36:58 · 2 answers · asked by butterfly 1 in Computers & Internet Programming & Design

2 answers

U can use AJAX which is XMLHTTPRequest.

2007-01-30 21:43:51 · answer #1 · answered by Vaibhav 4 · 1 0

You can use XmlHttpRequest to send the response to the server without the entire page reloading.

Get sample and XmlHttpRequest.js from http://www.scss.com.au/family/andrew/webdesign/xmlhttprequest/

2007-01-31 05:42:09 · answer #2 · answered by Deepak Vasudevan 5 · 1 0

fedest.com, questions and answers