Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Troubles with MasterPages




I have a question that I hope you will be able to help me with...


I luckly built a page type that I used to create a new page in my site, but my site uses MasterPages, so, when I changed my pagetype so that it will use the required MasterPage, I realized that the my codebehind code is no longer being executed, for exemple if I have a button and for this button it was implemented the event button_Click... the code being placed never gets executed...

 Does anybody know what did I do wrong?


Thanks a lot!


BR, Victor Rincon

Apr 17, 2009 10:27

Just a guess:

Are you declaratively wireing up the events in the page or codebehind? If not, then maybe you replaced parts of the @Page directive when adding the masterpage and the AutoEventWireup attribute was set to false?

Apr 17, 2009 15:31

Thank you so much Magnus!

That was exactly the problem, the AutoEventWireup was set to false.

 You saved my week!


BR, Victor

Apr 18, 2009 10:47
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.