I have resolved my issue with the Master Page firing the Page_Load event twice:
Here is the solution:
1. Make sure all you IMG tags have a SRC assigned to them. (i.e. <IMG SRC="~images/foo.jpg" />) *This cannot be blank or null...it will cause the Page_Load to be called twice
2. Check your <TABLE /> tags and make sure you have bgColor="#f8f7ee" NOT background="#f8f7ee". This will also cause the Page_Load to fire twice.
3. I was using AJAX Collabsible Panel Extender controls and not setting the image src on the load and letting the control do that dynamically for me. Rather you should set the image src on that control to the image you want displayed whether or not the panel is collapsed or expanded. (i.e. if the panel is collapsed, the expaned image should be set and shown first etc...)
Any questions please post to this thread and I will check it regularly. I know this is a hassle for some developers and GOOGLING "Master Page events Firing Twice" or something similar does not return friendly results.
If you get an answer to your question, please mark it as 'Answer'
www.lymanlax.com |
www.possumslax.com |
www.teamfloridalax.com |
www.thefreightrateco.com