ASP.Net Page loading twice

If you are observing load event twice in a post back in ASP.Net page, check the following:

  • If Page_Load handler defined in Codebehind then AutoEventWireup property should be “false”
  • Check if you have mistakenly multiple event handlers registered for an event
  • Src or ImageURL attribute of your image control are defined and not empty (you can put %20 for blank)
  • bgColor or background is empty

Last two problems usually appears in one browser while disappears in other.

3 Comments »

  1. vimal saifudin said

    thanks..solved

  2. SteMyers said

    This is a really annoying problem that keeps bobbing up now and again for me, the majority of the time it is caused by one of the problems outlined by you – another cause of the double postback I found out today was SmartNavigation, I spotted an iframe in the source code with the ID ‘__hifSmartNav’ – removed it and it solved the problem.

RSS feed for comments on this post · TrackBack URI

Leave a Comment