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

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -