G
Guest
Hello All,
I have a piece of rudimentary code which is behaving differently in
different browsers.
if(!this.IsPostBack)
{
//execute some code
}
This piece of code is being executed for the very first time and also each
time a page is posted back to the server on firefox and netscape navigator.
But in IE it is behaving properly.....i.e., it is executing this piece of
code only for the very first time and for post backs this code is not being
executed which is what I want the program to do.
How come this code is being executed each and every time in firefox and
navigator? Is there any technique using which I can force all the browsers to
execute this code only once?
Thanks for your help!!!
I have a piece of rudimentary code which is behaving differently in
different browsers.
if(!this.IsPostBack)
{
//execute some code
}
This piece of code is being executed for the very first time and also each
time a page is posted back to the server on firefox and netscape navigator.
But in IE it is behaving properly.....i.e., it is executing this piece of
code only for the very first time and for post backs this code is not being
executed which is what I want the program to do.
How come this code is being executed each and every time in firefox and
navigator? Is there any technique using which I can force all the browsers to
execute this code only once?
Thanks for your help!!!