Postback in Firefox and IE

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

Grant Merwitz

Now thats a wierd one.
Just to test, does
if(!Page.IsPostBack)

behave differently
 
G

Guest

Grant,

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

Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top