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
Post a Comment