hello,
im running asp.net v1.1 for my personal website. one page is doing
something strange -- its reloading itself, so that when i set a
breakpoint on Page_Load or Page_Init, theyre hit twice.
im not using global.asax, im not inheriting anything custom, and
theres no javascript int he page -- so im not sure what could cause a
page to reload itself.
any ideas what could cause this? i know this isnt a lot of
information, and its not really an important issue so dont stress it..
but if you have any ideas id be curious.
thanks!
sm 3 1249
On Mar 3, 8:06 am, spaceMar...@mailinator.com wrote:
hello,
im running asp.net v1.1 for my personal website. one page is doing
something strange -- its reloading itself, so that when i set a
breakpoint on Page_Load or Page_Init, theyre hit twice.
im not using global.asax, im not inheriting anything custom, and
theres no javascript int he page -- so im not sure what could cause a
page to reload itself.
any ideas what could cause this? i know this isnt a lot of
information, and its not really an important issue so dont stress it..
but if you have any ideas id be curious.
thanks!
sm
Check your code....
Confirm that your code do not have self redirecting code....
and also check whither you have raised the Page_Load or Page_Init
manually some where or not...
Masudur
Are you, by any chance, using FireFox? If so, could you please check
if the same error (hitting Page_Load twice) is reproducible using IE?
There is this weird bug in FireFox, where if you have a, say, image
with empty src:
....
<img src="" ... />
....
FireFox will request the page once again for the src="" attribute. In
ASP.NET terms, this effectively means going up the ASP.NET page
lifecycle (Init, Load, PreRender, Render) once again. I have no idea
why this happens, but it does. If this is the case, make sure you have
no empty src for images (and in fact, no empty src attribute for
anything).
Let me know if this helps
~Kevin
I've seen issues where if you have an @Page attribute AutoEventWireup="true",
and you ALSO implement event handler delegate hookups in the codebehind as
well, you can see Page events fire 2X.
Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
"sp*********@mailinator.com" wrote:
hello,
im running asp.net v1.1 for my personal website. one page is doing
something strange -- its reloading itself, so that when i set a
breakpoint on Page_Load or Page_Init, theyre hit twice.
im not using global.asax, im not inheriting anything custom, and
theres no javascript int he page -- so im not sure what could cause a
page to reload itself.
any ideas what could cause this? i know this isnt a lot of
information, and its not really an important issue so dont stress it..
but if you have any ideas id be curious.
thanks!
sm
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Andrew |
last post by:
Hi,
Until now, I have used a single webform for my web app,
and everything's been OK. Now, I've decided to create a
main menu webform. So, I've got two webforms. Using
Visual Studio .NET (with...
|
by: hqdtech |
last post by:
how to refresh webform from other webform
I have 2 webform, i want if webform A was close then webform B wil
refresh.
And the problem second:
how to catch packet on the network in C#.
...
|
by: Jerry |
last post by:
I am using .Net 2003. I have been working with this
ASP.Net webform that I created a few weeks ago. It has
been working fine.
However, while modifying the webform today, this webform
stopped...
|
by: Andrew |
last post by:
Hi,
Until now, I have used a single webform for my web app,
and everything's been OK. Now, I've decided to create a
main menu webform. So, I've got two webforms. Using
Visual Studio .NET (with...
|
by: =?Utf-8?B?UGF1bA==?= |
last post by:
Hi I have start web form and when the user clicks a button (server.transfer)
they are directed to the second webform. I was wondering if there is a way
to create an instance of the first webform...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
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...
|
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,...
|
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...
| |