webform re-loading itself?

  • Thread starter Thread starter spaceMarine
  • Start date Start date
S

spaceMarine

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
 
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
 
Back
Top