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

ASP.net reproducible bug

I've seen a few posts from people wondering why OnInit fires multiple times
for one web form. I finally figured it out for my situation.

I tested this on both .net 1.1 and 1.0 both were able to reproduce.
Create a new c# web app. in WebApp1.aspx add the following html:
<table><tr><td background="#000000"></td></tr></table>

Place a Break in the Web designer generated OnInit.

Hit run..

OnInit will fire twice..

remove the background="#000000" and it will only fire once..

serious bug.. as the second time it fires the context is lost and the
request seems to be lost aswell..

Brilliant!

How would i go about reporting this to ms or getting a fix without using up
one of my msdn incidents?

R
Nov 17 '05 #1
5 1067
You're using the background attribute wrong.
The baground attribute is to specify a background image.
Use the BGColor attribute to specify the background color.
Here's more info:
http://www.blooberry.com/indexdot/ht...ges/b/body.htm

But I agree with you that it still shouldn't cause the page to load twice,
so there is a bug for you to fix and a bug for Microsoft to fix.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
Developer for Hire

"Ryan Folstad" <ry**@crmkb.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I've seen a few posts from people wondering why OnInit fires multiple times for one web form. I finally figured it out for my situation.

I tested this on both .net 1.1 and 1.0 both were able to reproduce.
Create a new c# web app. in WebApp1.aspx add the following html:
<table><tr><td background="#000000"></td></tr></table>

Place a Break in the Web designer generated OnInit.

Hit run..

OnInit will fire twice..

remove the background="#000000" and it will only fire once..

serious bug.. as the second time it fires the context is lost and the
request seems to be lost aswell..

Brilliant!

How would i go about reporting this to ms or getting a fix without using up one of my msdn incidents?

R

Nov 17 '05 #2
You might try sending an email to ms****@microsoft.com using Visual Studio
..NET in the title.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
Developer for Hire
"Ryan Folstad" <ry**@crmkb.net> wrote in message
news:Ov**************@tk2msftngp13.phx.gbl...
Agreed its not how your supposed to use background but it does work.. the
cel color changes in IE atleast.

It was a real pain finding which line was causing it to load twice.. I
basically had to remove each row in a huge table 1 by 1 to see which was
causing the problem.

Do you have a better method? Is there anyway to decipher the EventArgs to
determine where/what caused a given load?

Also how do i post a bug report to microsoft? I don't see anywhere on MSDN to do that.

R

"Steve C. Orr, MCSD" <St***@Orr.net> wrote in message
news:u2**************@TK2MSFTNGP10.phx.gbl...
You're using the background attribute wrong.
The baground attribute is to specify a background image.
Use the BGColor attribute to specify the background color.
Here's more info:
http://www.blooberry.com/indexdot/ht...ges/b/body.htm

But I agree with you that it still shouldn't cause the page to load twice, so there is a bug for you to fix and a bug for Microsoft to fix.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
Developer for Hire

"Ryan Folstad" <ry**@crmkb.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I've seen a few posts from people wondering why OnInit fires multiple

times
for one web form. I finally figured it out for my situation.

I tested this on both .net 1.1 and 1.0 both were able to reproduce.
Create a new c# web app. in WebApp1.aspx add the following html:
<table><tr><td background="#000000"></td></tr></table>

Place a Break in the Web designer generated OnInit.

Hit run..

OnInit will fire twice..

remove the background="#000000" and it will only fire once..

serious bug.. as the second time it fires the context is lost and the
request seems to be lost aswell..

Brilliant!

How would i go about reporting this to ms or getting a fix without
using up
one of my msdn incidents?

R



Nov 17 '05 #3
Microsoft will get this Bug Report very soon.

I am sure someone in this group will bubble this bug up the ladder.
"Ryan Folstad" <ry**@crmkb.net> wrote in message
news:Ov**************@tk2msftngp13.phx.gbl...
Agreed its not how your supposed to use background but it does work.. the
cel color changes in IE atleast.

It was a real pain finding which line was causing it to load twice.. I
basically had to remove each row in a huge table 1 by 1 to see which was
causing the problem.

Do you have a better method? Is there anyway to decipher the EventArgs to
determine where/what caused a given load?

Also how do i post a bug report to microsoft? I don't see anywhere on MSDN to do that.

R

"Steve C. Orr, MCSD" <St***@Orr.net> wrote in message
news:u2**************@TK2MSFTNGP10.phx.gbl...
You're using the background attribute wrong.
The baground attribute is to specify a background image.
Use the BGColor attribute to specify the background color.
Here's more info:
http://www.blooberry.com/indexdot/ht...ges/b/body.htm

But I agree with you that it still shouldn't cause the page to load twice, so there is a bug for you to fix and a bug for Microsoft to fix.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
Developer for Hire

"Ryan Folstad" <ry**@crmkb.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I've seen a few posts from people wondering why OnInit fires multiple

times
for one web form. I finally figured it out for my situation.

I tested this on both .net 1.1 and 1.0 both were able to reproduce.
Create a new c# web app. in WebApp1.aspx add the following html:
<table><tr><td background="#000000"></td></tr></table>

Place a Break in the Web designer generated OnInit.

Hit run..

OnInit will fire twice..

remove the background="#000000" and it will only fire once..

serious bug.. as the second time it fires the context is lost and the
request seems to be lost aswell..

Brilliant!

How would i go about reporting this to ms or getting a fix without
using up
one of my msdn incidents?

R



Nov 17 '05 #4
I was only able to reproduce using:
Response.Redirect or link (<a href>)

If you use Server.Transfer to load the page its not reproducible. This is
what was really giving me a hard time tracking it down!

Hope this helps,

Ryan

"MS News (MS ILM)" <sq**********@hotmail.com> wrote in message
news:#8**************@TK2MSFTNGP10.phx.gbl...
Ryan,

I was only able to reproduce this bug only on postback in Both C# and VB.NET
and not on the initial load of the page. Do you see the same thing?

At least not a handicap.
That is Brilliant Ryan. Thank you for sharing this with us

SA

"Ryan Folstad" <ry**@crmkb.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I've seen a few posts from people wondering why OnInit fires multiple times for one web form. I finally figured it out for my situation.

I tested this on both .net 1.1 and 1.0 both were able to reproduce.
Create a new c# web app. in WebApp1.aspx add the following html:
<table><tr><td background="#000000"></td></tr></table>

Place a Break in the Web designer generated OnInit.

Hit run..

OnInit will fire twice..

remove the background="#000000" and it will only fire once..

serious bug.. as the second time it fires the context is lost and the
request seems to be lost aswell..

Brilliant!

How would i go about reporting this to ms or getting a fix without using up one of my msdn incidents?

R

Nov 17 '05 #5
Thank you for the info

"Ryan Folstad" <ry**@crmkb.net> wrote in message
news:OY*************@tk2msftngp13.phx.gbl...
To clarify.

It is only reproducible on initial load, if the page is loaded from a url or response.redirect. Server.Transfer is ok.

However regardless how it was loaded initially any subsequent PostBack will call OnInit twice.

I also noticed that the second OnInit has old Request information and
Context is gone.

R

"Ryan Folstad" <ry**@crmkb.net> wrote in message
news:Oi**************@TK2MSFTNGP09.phx.gbl...
I was only able to reproduce using:
Response.Redirect or link (<a href>)

If you use Server.Transfer to load the page its not reproducible. This is what was really giving me a hard time tracking it down!

Hope this helps,

Ryan

"MS News (MS ILM)" <sq**********@hotmail.com> wrote in message
news:#8**************@TK2MSFTNGP10.phx.gbl...
Ryan,

I was only able to reproduce this bug only on postback in Both C# and

VB.NET
and not on the initial load of the page. Do you see the same thing?

At least not a handicap.
That is Brilliant Ryan. Thank you for sharing this with us

SA

"Ryan Folstad" <ry**@crmkb.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I've seen a few posts from people wondering why OnInit fires multiple

times
for one web form. I finally figured it out for my situation.

I tested this on both .net 1.1 and 1.0 both were able to reproduce.
Create a new c# web app. in WebApp1.aspx add the following html:
<table><tr><td background="#000000"></td></tr></table>

Place a Break in the Web designer generated OnInit.

Hit run..

OnInit will fire twice..

remove the background="#000000" and it will only fire once..

serious bug.. as the second time it fires the context is lost and the
request seems to be lost aswell..

Brilliant!

How would i go about reporting this to ms or getting a fix without
using up
one of my msdn incidents?

R



Nov 17 '05 #6

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

Similar topics

0
by: guy | last post by:
create a winforms app with 1 form with a combo box on it, add some items to the items collection. In the ComboBox1_SelectedIndexChanged event handler display a msgbox, optionally set a...
1
by: guy | last post by:
VS.NET 2003 , .Net Framework 1.1 SP1 Create a new WinForms project with one form. on the form place a DataGrid and a TextBox. (Just use the default names) add the following code:- Private...
14
by: jack | last post by:
At this link I have two c# projects, one is a client, the other is a server. Just point the ip address of the client at the server http://www.slip-angle.com/hosted/bug/ The server does...
0
by: Mick Hardy | last post by:
Hi, Has anyone seen this weird behaviour or have any suggestions or can anyone reproduce it? The history: I converted a large third party DB from 97 to XP and it uses the...
4
by: geoffp | last post by:
I need to generate reproducible random number series. I've done the obvious - use mt_srand with the same seed. This supposedly will create the same series every time. Is this true? Its not...
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: 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...
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?
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
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
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
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.