I have a hidden field inside an update panel (.Net 3.5). On an asynchronous postback I update the hidden field value from code-behind, but when I inspect the value from JavaScript the hidden field has the old value. On a new postback, the hidden field value in code-behind is correct, updated from the previous postback. How can I get the correct value in JavaScript?