473,668 Members | 2,552 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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><t d background="#00 0000"></td></tr></table>

Place a Break in the Web designer generated OnInit.

Hit run..

OnInit will fire twice..

remove the background="#00 0000" 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 1072
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******** ********@tk2msf tngp13.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><t d background="#00 0000"></td></tr></table>

Place a Break in the Web designer generated OnInit.

Hit run..

OnInit will fire twice..

remove the background="#00 0000" 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****@microsof t.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******** ******@tk2msftn gp13.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.ne t> wrote in message
news:u2******** ******@TK2MSFTN GP10.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******** ********@tk2msf tngp13.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><t d background="#00 0000"></td></tr></table>

Place a Break in the Web designer generated OnInit.

Hit run..

OnInit will fire twice..

remove the background="#00 0000" 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******** ******@tk2msftn gp13.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.ne t> wrote in message
news:u2******** ******@TK2MSFTN GP10.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******** ********@tk2msf tngp13.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><t d background="#00 0000"></td></tr></table>

Place a Break in the Web designer generated OnInit.

Hit run..

OnInit will fire twice..

remove the background="#00 0000" 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.Redire ct 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**********@h otmail.com> wrote in message
news:#8******** ******@TK2MSFTN GP10.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******** ********@tk2msf tngp13.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><t d background="#00 0000"></td></tr></table>

Place a Break in the Web designer generated OnInit.

Hit run..

OnInit will fire twice..

remove the background="#00 0000" 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******** *****@tk2msftng p13.phx.gbl...
To clarify.

It is only reproducible on initial load, if the page is loaded from a url or response.redire ct. 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******** ******@TK2MSFTN GP09.phx.gbl...
I was only able to reproduce using:
Response.Redire ct 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**********@h otmail.com> wrote in message
news:#8******** ******@TK2MSFTN GP10.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******** ********@tk2msf tngp13.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><t d background="#00 0000"></td></tr></table>

Place a Break in the Web designer generated OnInit.

Hit run..

OnInit will fire twice..

remove the background="#00 0000" 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
1298
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 breakpoint on it run the app hold the mouse button down onthe combo box dropdown button - DO NOT release it
1
332
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 al As New ArrayList
14
1859
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 little more than the examples in the c# documentation for how to set up an asynchronous server. It just accepts connections, reads data into a buffer continously, doing nothing with it.
0
2180
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 TransferSpreadsheet method. This method requires a somewhat complicated spreadsheet to be open in order to work. A simple
4
3005
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 working for me. By the way, seeding mt_srand with different integers doesn't necessarily produce different series. I've done a little testing and every pair of consecutive even and odd numbers produces the same series. eg. seed 0 and 1
0
8459
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8367
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8889
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8790
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8570
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7391
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5677
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2017
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.