Postback in Firefox and IE



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!!!
.



Relevant Pages

  • Re: Fatal Error....
    ... During Development of Prog,When i compile my prog, ... Its works ok for the first time,and executable is ... Error executing link.exe. ... A running program cannot be deleted. ...
    (microsoft.public.vc.language)
  • Re: Write to unused memory-mapped IO address (0xfffffffc)
    ... >after executing a store word instruction in a loop: ... >The first time the SW instruction is executed it works fine and the frame ... >I use SPIM to simulate my code. ...
    (comp.programming)
  • Re: Postback in Firefox and IE
    ... I tried with "if" but it is behaving the same way. ... >> This piece of code is being executed for the very first time and also each ... >> navigator. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Postback in Firefox and IE
    ... > I have a piece of rudimentary code which is behaving differently in ... > This piece of code is being executed for the very first time and also each ... > navigator. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Virus software for Mac?
    ... executing. ... But what if it is (by all appearances) a JPEG that you wish ... get the "You are about to run the first time. ...
    (comp.sys.mac.apps)

Loading