Ask a Question related to ASP.NET General, Design and Development.
-
Cynic07 #1
Application_BeginRequest is fired 2 times each time I do an action on the browser...
Hi, I hope someone could help me with this problem...
First, the context :
IIS : v5.1
Framework : v1.1
Language : C#
I have a main page (default.aspx) which is my server default page.
That I open [url]http://localhost/MainProject/[/url] or
[url]http://localhost/MainProject/default.aspx[/url], I have the
Application_BeginRequest fired 2 times... so the Default.Page_Load()
method occures 2 times too.
When I click any link button in my page, the Click event only occurs
the first time.
When I noticed this problem, I made a test.aspx so see if this page
does the same thing and NO. This one is only fireing
Application_BeginRequest one time.
Here are tests I tried :
- First I wrote a method : WriteDebug(string event) that writes "time
+ event + context id" to a file
I call this method on overridden OnInit() and CreateChildControl()
methods, on Page_Load() and Pre_Render() methods that are registered
to Load and PreRender System.Web.UI.Page EventHandlers.
- Second I change the default.aspx to test2.aspx and the problem is
still there.
Does anyone have encountered that problem before?
Anybody have a suggestion for me?
Cynic07 Guest
-
dupe times in Time::HiRes
Monks, mongers and perlites, I have been attempting to use it to provide 20 digit time date stamp which includes 6 digits for microseconds. In... -
Is Time Between 2 other times
There is an obvious solution to this but I can't figure it out: I need to know whether the current time is between midnight and 8am. Thanks -
Action Requested - 2003 and browser crashes
In researching a potential issue in version 2003 I'm requesting some assistance from forum participants. Please visit each of these two sites: ... -
Page Load fired 3 times Web user control is embedded in a custom control
Hi, I have built a custom control that build a table with 3 cells in it. The custom control is designed to add all child controls to cell#2,... -
server time vs browser time on cookie expirations
Say, I want to set a cookie and have it expire an hour after it's set. It's looking like this is only possible for browsers which are in the same... -
Cynic07 #2
Re: Application_BeginRequest is fired 2 times each time I do an action on the browser...
Hello Everyone, I found my problem and I can tell you that is a BUG in
ASP.NET.
I Explain:
I had a page that was fireing 2 requests each time I asked for an
action from the browser (Click a linkbutton, ... or even call it for
the first time..)
The problem was that in my <Body> tag.
Here are two possible ways to change the color or background image of
a page :
<body bgColor="#rrggbb"> (red-green-blue)
or
<body background="image.gif">
My error (which is not supposed to fire two requests) was that I had a
body tag like : <body background="#cccccc">
Probably a BUG from ASP.NET that was validating the file #cccccc as a
background! and I don't know why, but was fireing a second request
from the server...
Hope this bug could help some of you...
Nicolas Dion
Cynic07 Guest



Reply With Quote

