473,395 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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!!!
Nov 19 '05 #1
3 1399
Now thats a wierd one.
Just to test, does
if(!Page.IsPostBack)

behave differently
"Diffident" <Di*******@discussions.microsoft.com> wrote in message
news:3C**********************************@microsof t.com...
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!!!

Nov 19 '05 #2
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" <Di*******@discussions.microsoft.com> wrote in message
news:3C**********************************@microsof t.com...
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!!!


Nov 19 '05 #3

Does having a querystring makes a request a new request each time it is
posted back?
"Grant Merwitz" wrote:
Now thats a wierd one.
Just to test, does
if(!Page.IsPostBack)

behave differently
"Diffident" <Di*******@discussions.microsoft.com> wrote in message
news:3C**********************************@microsof t.com...
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!!!


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: ed | last post by:
Does anyone know if ASP.NET 2.0 is going to incorporate "maintain scroll position on postback" in non-IE browsers like Firefox? This seems like an often requested feature on these newsgroups...
7
by: John Smith | last post by:
As it is now apparently illegal in the UK to produce a website which is inaccessible to the disabled, which includes the JavaScript-disabled and images-disabled, am I right in thinking that the...
3
by: Lenard Gunda | last post by:
Hi, I have the following problem. On a page I have a multiple selection listbox. It contains a lot of items. When items near the bottom are selected, and I do a postback, the control jumpst to...
1
by: Alan Silver | last post by:
Hello, I have a page that enables a site owner to upload images for products on his site. I have five instances of a the following group of controls: 1) a drop down containing the product names...
0
by: Boricua | last post by:
I'm using ASP.NET 2.0 I got an imagebutton at the end of my form as a submit button. When the user clicks it the button becomes disabled and continues with the postback. This is what I got, ib...
15
by: mc | last post by:
I'm writing an app for managing Task Lists, I'm trying to add some controls to a form that I can use to link tasks, my original intention was to: - Add two list boxes, one listing "all Tasks"...
9
by: =?Utf-8?B?TWFyYyBXb29sZnNvbg==?= | last post by:
I have what seems to be a relatively simple problem when attempting to simulate a postback in ASP.NET from JavaScript. My scenario is (and please don't ask me why) that I have an HTML <a>nchor...
1
by: Mike | last post by:
I'm having some problems with "Invalid postback or callback argument" on an ASP.NET page. It appears to only happen on Firefox browsers, but I could be wrong about that. At any rate, the...
1
by: alectang | last post by:
I have an application that works fine on localhost but when deploying to a new server, all postback events don't work anymore. ie. a button clicked but the page just refreshes, instead of doing...
6
by: LeeHarvey | last post by:
Hi, I have a server ddl which is populated once in PageLoad. The ddl is inside an UpdatePanel. In FireFox, on PostBack, the selected value is always the first in the list. There are no porblems in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.