Re: Postback in Firefox and IE



Grant,

I tried with "if(!Page.IsPostBack)" but it is behaving the same way.

Any ideas?

"Grant Merwitz" wrote:

> Now thats a wierd one.
> Just to test, does
> if(!Page.IsPostBack)
>
> behave differently
>
>
> "Diffident" <Diffident@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:3CA43623-F385-4985-A26C-2C229CE9D0DC@xxxxxxxxxxxxxxxx
> > 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: 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: Problem with button click event handler
    ... And the very first time that I ... select the properties from the lists, ... clicked twice (i.e except for the intial request when it works on one ... submit that's when its not behaving as expected. ...
    (microsoft.public.dotnet.general)
  • 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)
  • Problem with button click event handler
    ... And the very first time that I ... clicked twice (i.e except for the intial request when it works on one ... submit that's when its not behaving as expected. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Problem with button click event handler
    ... And the very first time that I ... clicked twice (i.e except for the intial request when it works on one ... submit that's when its not behaving as expected. ...
    (microsoft.public.dotnet.general)