I need to catch Ispostback event using javascript for some purpose. I found many example in google but none of them has worked for me. Like one example i used which is below:
$(document).ready(function () {
var chkPostBack = '<%= Page.IsPostBack ? "true" : "false" %>';
if (chkPostBack == 'true') {
alert("Ispostback alert");
}
});
But this is not working.