473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Some Master Page questions

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
Jul 3 '07 #1
8 1124
" active" <ac**********@a-znet.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>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...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 3 '07 #2
Thanks, I had the feeling I was selecting the wrong form.
"Mark Rae" <ma**@markNOSPAMrae.netwrote in message
news:uz**************@TK2MSFTNGP05.phx.gbl...
>" active" <ac**********@a-znet.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>>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...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 3 '07 #3
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
"Mark Rae" <ma**@markNOSPAMrae.netwrote in message
news:uz**************@TK2MSFTNGP05.phx.gbl...
>" active" <ac**********@a-znet.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>>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...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 3 '07 #4
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.
Jul 3 '07 #5
" active" <ac**********@a-znet.comwrote in message
news:uG**************@TK2MSFTNGP02.phx.gbl...
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
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 3 '07 #6

"GroupReader" <ne***********@hotmail.comwrote in message
news:11**********************@q75g2000hsh.googlegr oups.com...
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.


Jul 3 '07 #7
I must have missed it

Thanks

"Mark Rae" <ma**@markNOSPAMrae.netwrote in message
news:OA**************@TK2MSFTNGP05.phx.gbl...
>" active" <ac**********@a-znet.comwrote in message
news:uG**************@TK2MSFTNGP02.phx.gbl...
>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
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 3 '07 #8
Thanks to Mark Rae and GroupReader.

It was right there like you said!

" active" <ac**********@a-znet.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>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


Jul 4 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Visual Systems AB \(Martin Arvidsson\) | last post by:
Hi! I have created a masterpage, now i have a tree where pages resides because all visitors should not be able to peek on the private pages. The masterpage contains A table, the table...
1
by: Ryan Ternier | last post by:
I have just started playing around with ASP.NET 2.0 and have a few questions I couldn't get answers to on the net. If anyone could help me with these it'd be awesome. --- Themes - THey seem to...
8
by: PJ | last post by:
How can I get a reference to the master page class? It is defined as a partial class, but I cannot seem to type a variable to the name of the partial class? The compiler continually shows "The...
4
by: Learner | last post by:
Hello, Here is a little bit of what I am working ... I have selected Header and Side lay out for my Master Page. All my links go on the Side and the content on to the right pane. I have no...
1
by: LilC | last post by:
I'm creating an application that has a standard layout for all pages. The information that is displayed in the layout will be dynamic based on the user that is logged in. Thus when a page is...
12
by: johannblake | last post by:
First off, I am NOT a beginner. I have lots of experience developing professional web sites and am a professional software developer. Unfortunately I've been out of web site development for the...
8
by: JT | last post by:
Hi, I have done a fair amount of style editing inline in ASP. I'm now using VS 2005 with a standard web project (not Web Application Project). This is my first foray into CSS in a style sheet...
4
by: lichaoir | last post by:
I have two questions about the use of Master Page: 1. How to access properties and controls in the master page from content page? (I know I can use the "FindControl()" method of the "Master"...
10
by: =?Utf-8?B?RGFuaQ==?= | last post by:
Hi, Trying to create a master page that holds a menu, and the menu switches between pages in the site. 2 problem arrosed: a. When I navigate from page to page (all AJAX Web Forms, with the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.