Having problems creating content pages for a masterpage

Last post 07-10-2006 3:44 PM by jaseiffert. 1 replies.

Sort Posts:

  • Having problems creating content pages for a masterpage

    07-10-2006, 1:53 PM
    • Member
      65 point Member
    • jaseiffert
    • Member since 06-18-2002, 6:20 AM
    • Posts 14
    I hope I am just doing something wrong. I create a master page in a web application project and that works ok. I found that I could no longer create a content page when adding a new item because the "Use Master Page" checkbox is gone.

    So I have been right-clicking on the master page and selecting "Add Content Page". It creates a WebForm1.aspx with associated .cs and designer.cs pages. I rename the file and everything looks ok until I go to compile and found that there was a page load event in every content page.cs and the partial class didn't change when I renamed the file either. Every content page has a public partial class WebForm1 in it with a Page_Load event.

    Is this a bug or am I doing something wrong?

    I'm using the WAP because it is easier to update the web site. When I used the standard way in vs 2005 it seamed if I made any minor change I would have to upload the whole site again.  I just did a project using WAP and when I created content pages I had to go into the CS file and change it. It was not fun as I had 100+ pages in the site.

    I just need to know what is the best way to create content pages for WAP and/or How to use the standard way vs 2005 does web projects without having to upload the entire site (except images and such) each time I change something.

    Thanks a lot for your help!

    JefferyS


  • Re: Having problems creating content pages for a masterpage

    07-10-2006, 3:44 PM
    • Member
      65 point Member
    • jaseiffert
    • Member since 06-18-2002, 6:20 AM
    • Posts 14
    My bad. The Page load event is supposed to be there. I have to change the partical class name in the CS file and the inherits in the aspx page.

    Thanks,

    JefferyS
Page 1 of 1 (2 items)