Some Master Page questions

  • Thread starter Thread starter active
  • Start date Start date
A

active

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...
 
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
 
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.
 
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
 
GroupReader said:
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
 
I must have missed it

Thanks

Mark Rae said:
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
 
Back
Top