473,671 Members | 2,442 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1134
" active" <ac********** @a-znet.comwrote in message
news:%2******** ********@TK2MSF TNGP02.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**@markNOSPA Mrae.netwrote in message
news:uz******** ******@TK2MSFTN GP05.phx.gbl...
>" active" <ac********** @a-znet.comwrote in message
news:%2******* *********@TK2MS FTNGP02.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**@markNOSPA Mrae.netwrote in message
news:uz******** ******@TK2MSFTN GP05.phx.gbl...
>" active" <ac********** @a-znet.comwrote in message
news:%2******* *********@TK2MS FTNGP02.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******** ******@TK2MSFTN GP02.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

"GroupReade r" <ne***********@ hotmail.comwrot e in message
news:11******** **************@ q75g2000hsh.goo glegroups.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**@markNOSPA Mrae.netwrote in message
news:OA******** ******@TK2MSFTN GP05.phx.gbl...
>" active" <ac********** @a-znet.comwrote in message
news:uG******* *******@TK2MSFT NGP02.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******** ********@TK2MSF TNGP02.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
905
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 contains a background-image. As long as the pages is where the masterpage is, the images is displayed.
1
1530
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 lack full functionality with CSS files. I have a theme set up. Inside that theme I can have 32 CSS files. Each file is for each page within that theme. Why? I find it easier having multiple small CSS files to work with rather than a few HUGE...
8
2363
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 type 'MyMaster' is not defined." I would like to reference the master page from a control, by casting the Master property of the Page property to the type, but obviously I cannot do this if I can't get a reference to the actual type. Thanks,
4
1808
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 problem dealing wiht ContentPlaceHolder and the content pages. I also have created a log in screen using Loin control and this works pretty well too. But my problem and where I need help is I need to be able to hide the
1
2941
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 browsed to, I need to check to see if the user has logged in or not. Then if they have logged in, I need to pull their information from the database to display in the header. In previous applications, I made use of a base web page that all the...
12
1680
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 past 2 years but would like to get back into it. What I need is some advice to get me up-to-date on what is the best (or one of the best) ways of developing web sites and web applications. The following are my requirements: * Static web pages...
8
6688
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 and also my first true attempt at using master pages. I tried setting up a style sheet with a simple setting to float an image to the right and it had no effect on the image. Then, I tried putting the style code in my ASPX file as such,
4
1488
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" Property to access the controls. But how can I access the properties? I've tried to write a property in the master page and access it from content page, but it didn't work.) 2. How to specify default content in the master page? (I've tried to...
10
2130
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 Master pages as their master...) the entire page is refreshed - also the menu which belongs to the master, how can I fix it - so only the inside content will be refreshed ?
0
8483
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8401
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8824
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8603
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8673
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7444
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5703
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2818
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.