473,395 Members | 1,941 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.

Page_Load fires twice with Mozilla

Ed
Has anyone seen this one? I have a situation where code in my page_load event
is firing twice for mozilla firefox users. Everything is fine in IE6. I set
breakpoints and verified.
The second time the page_load fires in mozilla, I checked the IsPostback to
verify that it is still false.
What causes this behavior?
Thanks,
Ed

Nov 18 '05 #1
4 1694
Hi Ed,
check to see if you have AutoEventWireup set to true in the Page
directive

Kumar

"Ed" <ed*******@noemail.noemail> wrote in message
news:C7**********************************@microsof t.com...
Has anyone seen this one? I have a situation where code in my page_load event is firing twice for mozilla firefox users. Everything is fine in IE6. I set breakpoints and verified.
The second time the page_load fires in mozilla, I checked the IsPostback to verify that it is still false.
What causes this behavior?
Thanks,
Ed

Nov 18 '05 #2
Ed
Hi,
I currently have it set to false.

Thanks,
Ed

"Kumar Reddi" wrote:
Hi Ed,
check to see if you have AutoEventWireup set to true in the Page
directive

Kumar

"Ed" <ed*******@noemail.noemail> wrote in message
news:C7**********************************@microsof t.com...
Has anyone seen this one? I have a situation where code in my page_load

event
is firing twice for mozilla firefox users. Everything is fine in IE6. I

set
breakpoints and verified.
The second time the page_load fires in mozilla, I checked the IsPostback

to
verify that it is still false.
What causes this behavior?
Thanks,
Ed


Nov 18 '05 #3
> Hi,
I currently have it set to false.

Thanks,
Ed


I'm seeing the same thing. I have AutoEventWireup also set to false,
yet I see Page_Init and Page_Load getting called twice in Firefox. In
IE, it only gets called once. A bug in Firefox?
Nov 18 '05 #4
Ed
Actually, I found the answer to my own problem. It occured for me in the
html. We had an external javascript file included in the control we used for
the page header. Under certain situations, it would be written out as double
quotes without the file name. That caused the page to load twice. I assure
you that was not an easy find.

I have heard other instances of similiar problems with malformed html or css.

Hope that helps.

"Greg Johnson" wrote:
Hi,
I currently have it set to false.

Thanks,
Ed


I'm seeing the same thing. I have AutoEventWireup also set to false,
yet I see Page_Init and Page_Load getting called twice in Firefox. In
IE, it only gets called once. A bug in Firefox?

Nov 19 '05 #5

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

Similar topics

0
by: Gary | last post by:
When attempting to write a PDF stream to the web browser, the Page_Load event fires twice if a user has Internet Explorer configured to 'Check for newer versions of stored pages: Every visit to...
1
by: Jon | last post by:
Hi, I've set up a new web form (new.aspx) that inherits a BasePage class. The new web form contains an override Page_Load event. In BasePage, Page_Load is declared 'virtual'. In the new web...
7
by: Jay Douglas | last post by:
Hello all, I have a asp.net page that creates a pdf on the fly and sends the pdf down to the browser. When calling the page up in IE the Page_Load event is fried twice. This doesn't happen with...
1
by: bminder | last post by:
In the asp.net pages below, Common.vb has an overridable Page_Load sub. In the consuming page, Two.aspx, the Page_Load sub is inherited, but for some reason it (Overrides Sub Page_Load) executes...
14
by: V. Jenks | last post by:
I'm a little rusty having not touched .NET for 6 months and I can't remember why Page_Load is happening twice in this code: private void Page_Load(object sender, System.EventArgs e) {...
3
by: doobdave | last post by:
Hi all, I'm experiencing a rather strange problem: I am coding a web application using VB.net ASP.net and Visual Studio 2003. It's quite a large application, but the problem only occurs on...
4
by: Seraph | last post by:
Again, I'm rather new here, so if I fail to follow any etiquette, please forgive me and let me know what I've done wrong, but I think this might interest quite a few people. One of my colleaques...
0
by: pat.allan | last post by:
Hi All This seems to be a common problem here, but I've not found a solution yet to fix it for me. When I request a page through a browser, the page_load fires once. When I request the page's...
1
by: =?Utf-8?B?TWlrZXkgQmFieQ==?= | last post by:
Greetings Hopefully, I can be clear and concise on this one, but I'm confused. I have a page with a ListBox <- ODS <- BusinessObject and a button. The Parameter Source is 'None'. The Default...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.