473,395 Members | 1,678 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,395 software developers and data experts.

Any master page issues?

I have done about 30 pages of a new site. I just experimented with applying
a global theme that I downloaded from the net. It seemed to work as
described, applying colors, fonts etc to all pages.

Now I am thinking to create a Master Page so that I can have:

- A company logo (top-left)
- A horizontal navigation bar (top)
- A standard copyright footer (bottom)

I have just read through the help file on Master Pages.

Before I go and:

- Create a new master page with three 3 sections above
- Modify the page directive to include: MasterPageFile="~/Master.master"

Is there anything I may need to be aware of?

Jul 17 '08 #1
2 1150
"Mark B" <no*****@none.comwrote in message
news:OO**************@TK2MSFTNGP05.phx.gbl...
I have just read through the help file on Master Pages.
Is there anything I may need to be aware of?
I can't think of anything, especially since you've read through the help
file.

There are two key things to remember about MasterPages:

1) they are UserControls - this means that e.g. the MasterPage's Page_Load
event fires *after* the content page's Page_Load event etc...

2) they are not somehow the ASP.NET equivalent of framesets - the entire
page is created every time in a MasterPage / content page scenario...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 17 '08 #2
Not that it should stop you from using master pages, you just need to
realize that the whole master page will land into the content page. So if
you have relative url references in the master page, the starting point for
them will be the directory with the content page, not with the master page.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Mark B" <no*****@none.comwrote in message
news:OO**************@TK2MSFTNGP05.phx.gbl...
>I have done about 30 pages of a new site. I just experimented with applying
a global theme that I downloaded from the net. It seemed to work as
described, applying colors, fonts etc to all pages.

Now I am thinking to create a Master Page so that I can have:

- A company logo (top-left)
- A horizontal navigation bar (top)
- A standard copyright footer (bottom)

I have just read through the help file on Master Pages.

Before I go and:

- Create a new master page with three 3 sections above
- Modify the page directive to include: MasterPageFile="~/Master.master"

Is there anything I may need to be aware of?

Jul 17 '08 #3

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

Similar topics

14
by: multiformity | last post by:
So I have been working on an opensource project for a while, and decided to really try to make it look better after focusing on the functionality most of this time. Up to now, I have simply used a...
20
by: M.Siler | last post by:
Let me first by saying I am NOT a .net programmer, but am very skilled with ASP, JavaScript, HTML, DHTML, Flash development. I've been reading through posts here about Frames vs. Master Pages and...
4
by: EagleRed | last post by:
I am writing an ASP.NET 2.0 application that uses more than one master page. Currently, there are two pages, Freedom1.master and Freedom2.master. I have no problems with Freedom1.master. However,...
2
by: igotyourdotnet | last post by:
Is there a way to prevent the master page to reload every time the user makes a selection off of the menu? I want to give it a "Frame" like appearance were only the content section changes with a...
2
by: Monty | last post by:
Hello, I have a label control in my master page like this: <asp:Label ID=lblStatusMessage runat="server"></asp:Label> When I reference the control in my code-behind I get this error "Name...
4
by: Jeff Allan | last post by:
Hello, I am starting to use Master pages. I understand the concept that these pages should remain passive. So, I need a little assistance. Scenario: 1. Master page with a search box &...
2
by: =?Utf-8?B?QmlnSm9obg==?= | last post by:
We can set the default button and focus field in ASP.Net 2.0 on the Form tag. My form tag is in the Master page, but the controls are in containers. I read through a few articles which did not...
1
by: =?Utf-8?B?TGFycnkgRXBu?= | last post by:
I have an app using Ajax. The scriptmanager is within the form that is within the master page. I also have web user controls that are doing partial rendering and are "borrowing" or "inheriting"...
5
by: WT | last post by:
Hello, I want to know if the .master is of any importance for a master page. Could I have an .ascx extension and the <%@ Matser..%Directive inside, will my page load using LoadControl from code...
4
by: Stacey Levine | last post by:
I am trying to develop an intranet site and thought I would use Master Pages and themes. I found the the MS templates at http://msdn2.microsoft.com/en-us/asp.net/aa336613.aspx and was trying to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
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
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,...
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
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...

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.