Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

Some Master Page questions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
active - 03 Jul 2007 15:49 GMT
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
Mark Rae - 03 Jul 2007 16:33 GMT
>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
active - 04 Jul 2007 13:55 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.