asp.net - How to detect/track postback in javascript? -


Detect / track / check postback in javascript (like asp.net page. Any suggestions?

ASPX:

  input type = "hidden" id = "_ ispostback" value = "& Lt;% = Page.IsPostBack.ToString ()%> & gt;  

Client-side script:

  function isPostBack () {// function to see if a page is a postback-ed return document .getElementById ('_ispostback'). Value == 'True';}  

PS: I Is not tested, but I've already done something similar and it worked.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -