code_junkie

AJAX.NET request handlers - set hidden field

Nov 14th, 2011
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. var prm = Sys.WebForms.PageRequestManager.getInstance();
  2. prm.add_initializeRequest(MyPage_initializeRequestHandler);
  3.  
  4. function MyPage_initializeRequestHandler(sender, args)
  5. {
  6. var hiddenField1= $get('hiddenField1');
  7.  
  8. if (hiddenField1 != null)
  9. {
  10. hiddenField1.value = 'test';
  11. }
  12. }
Add Comment
Please, Sign In to add comment