Page Load occurs two times

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
7/27/2011 9:34:07 AM
Gravatar
Total Posts 88

Page Load occurs two times

hi,

 

I´ve have a page with several Usercontrols and when i load de main page the event Page_load occurs to times why?

thanks

7/27/2011 9:57:53 AM
Gravatar
Total Posts 18439

Re: Page Load occurs two times

it means you have the page load event wired up twice so it fires twice. You can either use AutoEventWireup="true" or you can wire up events such as page load in the OnInit event with code, but you can't do both or the event(s) will fire twice.

Hope that helps,

Joe

7/27/2011 10:34:50 AM
Gravatar
Total Posts 88

Re: Page Load occurs two times

thank´s Joe

i´ve set AutoEventWireup="false" on aspx and make load event onInit function.

thanks again.

You must sign in to post in the forums. This thread is closed to new posts.