Add New Item - Web Form - no master page option?

Rate It (1)

Last post 06-10-2009 11:44 AM by iqueiroz. 7 replies.

Sort Posts:

  • Add New Item - Web Form - no master page option?

    02-14-2006, 12:00 PM
    • Member
      20 point Member
    • dhodges
    • Member since 02-14-2006, 4:53 PM
    • Posts 6
    I am working on a new web site using Master Pages. I created my Master Page template just fine.

    Now I want to create a web page to use the template. It used to be that when you chose "Add New Item - Web Form" the dialog gave you an option to indicate that you want to use a master page and to select which one.

    But all that is gone. What happened to it? It just creates the web page from the standard template. There is no way to select a master page to use.

    And while it is no big deal to edit the header to use the master page, I am curious as to when and why the feature was removed...it was a convenience to be able to incorporate the Master Page automatically.

    (I recently updated Visual Studio to use the new Web Application Project feature. I'm not sure if that's related to this or not.)

    Thanks,
    David


  • Re: Add New Item - Web Form - no master page option?

    02-14-2006, 12:08 PM
    • Star
      11,530 point Star
    • jcasp
    • Member since 04-10-2003, 10:43 AM
    • Posts 2,286

    dhodges wrote:

    (I recently updated Visual Studio to use the new Web Application Project feature. I'm not sure if that's related to this or not.)

    It's got to be related to that.  Many people have experienced various problems when using Web Application Project.

  • Re: Add New Item - Web Form - no master page option?

    02-14-2006, 3:06 PM
    • Member
      20 point Member
    • dhodges
    • Member since 02-14-2006, 4:53 PM
    • Posts 6
    Okay, Scott Guthrie (http://weblogs.asp.net/scottgu/) just confirmed that this is a missing feature that will be added to Web Application projects in the next refresh.
  • Re: Add New Item - Web Form - no master page option?

    02-14-2006, 7:15 PM
    • Star
      14,223 point Star
    • ScottGu
    • Member since 06-05-2002, 8:36 PM
    • Redmond, WA
    • Posts 2,004
    • AspNetTeam
      Moderator

    Yep -- this is a feature that we are planning to add to the VS 2005 Web Application Project option for the next refresh.  Until then you need to add the master-page header manually.

    Note that the VS 2005 Web Site Project Model option fully supports it today, and continues to-do so after the WAP option is installed (so nothing breaks).

    Hope this helps,

    Scott

  • Re: Add New Item - Web Form - no master page option?

    11-18-2008, 11:06 AM

    I'm using 2008 and have the same problem. Any ideas?

  • Re: Add New Item - Web Form - no master page option?

    03-06-2009, 6:31 AM
    • Member
      3 point Member
    • vikaspatel
    • Member since 03-02-2009, 1:12 PM
    • Ahmedabad
    • Posts 1

     Hello,

     

    in VS2008 you can add new items to your project. Instead of web form use Web Content Form. Once you clicked the Add button another screen appears where you can choose the master page to use.

  • Re: Add New Item - Web Form - no master page option?

    06-08-2009, 9:54 AM
    • Member
      17 point Member
    • iqueiroz
    • Member since 05-29-2009, 3:55 PM
    • Posts 31

     I have the same issue in VS 2005 in one of my projects -- right-cliking on the project (Solution Explorer) gave me an option to "Convert to Web Application" (which leads me to believe that I had originally not created it as such !!??). I convert it, but I still have the same issue. Additionally, the code behind of quite a few pages do not show the page controls and does not have intellisense -- I have to add everything manually. What gives?


  • Re: Add New Item - Web Form - no master page option?

    06-10-2009, 11:44 AM
    • Member
      17 point Member
    • iqueiroz
    • Member since 05-29-2009, 3:55 PM
    • Posts 31

     I decided to create a brand new web project to see whether I could solve the issue in my previous post, and copied all tfe file over from the original project. I could now select a master page, but the intellisense and all page controls were still missing in the code behind. Very frustrating, but I was able to find an easy solution: go to the design page for each aspx file! As soon as I did that,  all controls were available in the code behind! Everything is good now, but is this a VS2005 bug?

Page 1 of 1 (8 items)