Monday, April 9, 2012

Javascript Postback check & execute


<script type="text/javascript">
function invokeMeMaster() {
var chkPostBack = '<%= Page.IsPostBack ? "true" : "false" %>';
if (chkPostBack == 'false') {
alert('Only the first time');
}
}

window.onload = function() { invokeMeMaster(); };
</script>

No comments:

Post a Comment