Introduction
Here i share a piece of code to find the asp.net postback
event in JavaScript code.
For some process we need to find or call certain event after
the postback in JavaScript..So i hope it may use to someone looking for this
code..
But in server side we can easily find the postback event and
do the sort of codes...This code only find for in JavaScript.......
<script type="text/javascript"
>
var
isPostBack = "<%= Page.IsPostBack ? "true" : "false" %>";
if
(isPostBack == "true")
{
alert("POSTBACK EVENT");
}
else
{
// DO ALL NON
POST BACK RELATED WORK HERE
}
</script>
0 comments:
Post a Comment