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.
vimal saifudin said
thanks..solved
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.
Ahmed Siddiqui said
Thanks for the addition Stephen