I have a Master page that all other pages reference.
When I create a new page I use "New WebForm"
Is that correct in this situation?
the IDE then inserts after the <%@ Page line
<!DOCTYPE html PUBLIC "-//W3C/...
Is that required if a master page is referenced?
Thanks
>I have a Master page that all other pages reference.
>
> When I create a new page I use "New WebForm"
> Is that correct in this situation?
If you add a new Web Content Form, you'll be prompted to select its
MasterPage, and everything will be wired up for you...

Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net
active - 03 Jul 2007 16:44 GMT
Thanks, I had the feeling I was selecting the wrong form.
>>I have a Master page that all other pages reference.
>>
[quoted text clipped - 3 lines]
> If you add a new Web Content Form, you'll be prompted to select its
> MasterPage, and everything will be wired up for you...
active - 03 Jul 2007 16:58 GMT
The only way I can do that is under "WebSite/Add Content Page" add one at
the same level as the .Master.
Nothing sounding like "Content" appears when I click "Add New Item"
I wanted to store the content pages in a folder.
I'm pretty sure I can move it and fit so it'll work.
Is that what I must do?
I'm using VS2005.
thanks again
>>I have a Master page that all other pages reference.
>>
[quoted text clipped - 3 lines]
> If you add a new Web Content Form, you'll be prompted to select its
> MasterPage, and everything will be wired up for you...
GroupReader - 03 Jul 2007 18:26 GMT
There are two types of projects in VS2005: Web Sites and Web
Application Projects
In a "Web Site", when adding a new web page, there should be a
checkbox in the dialog that says something like "select master page".
In a Web Application Project, you have the choice of adding a "Web
Page" or a "Web Content Page". The second one allows you to select a
master page.
active - 03 Jul 2007 19:14 GMT
> There are two types of projects in VS2005: Web Sites and Web
> Application Projects
>
> In a "Web Site", when adding a new web page, there should be a
> checkbox in the dialog that says something like "select master page".
I must have missed it
thanks
> In a Web Application Project, you have the choice of adding a "Web
> Page" or a "Web Content Page". The second one allows you to select a
> master page.
Mark Rae - 03 Jul 2007 18:26 GMT
> Is that what I must do?
1) Right-click on the folder in Project Explorer where you want to add the
new content page
2) Click Add
3) Click New Item
4) Select Web Content Form
5) Amend the name of the new content page as required
6) Click Add
7) Select the MasterPage you want to use
8) Click OK

Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net
active - 03 Jul 2007 19:14 GMT
I must have missed it
Thanks
>> Is that what I must do?
>
[quoted text clipped - 14 lines]
>
> 8) Click OK
Thanks to Mark Rae and GroupReader.
It was right there like you said!
>I have a Master page that all other pages reference.
>
[quoted text clipped - 7 lines]
>
> Thanks