Troubles with MasterPages

Member since: 2009
 

Hi!

 

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

#29239 Apr 17, 2009 10:27
  • Member since: 2008
     

    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?

    #29254 Apr 17, 2009 15:31
  • Member since: 2009
     

    Thank you so much Magnus!

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

     You saved my week!

     

    BR, Victor

    #29260 Apr 18, 2009 10:47