Ahmed’s Dev-Shop

ASP.Net Page loading twice

Posted in .Net, programming, software by Ahmed Siddiqui on June 2, 2008

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.

Advertisements