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

Porting to Master Page Model

n#
I have an old existing website with a Header/ Left Hand Menu and a
iframe as the main body content, adjacent to the menu. So for every
click on the menu item, I used to load a aspx page on the iframe and
hence i am not loading the entire menu and header for each request.

When I try and port the above model to Master Page

1) The menu ( I thot of having the Menu Web control), Header would be
moved to the master page.

2) The each aspx page, which used to load in the iframe would now
include the master page.
Is this approach right. But I still don't see the flexibility of
loading the page only for each menu clicks.

Ofcourse I am not interested in using the viewstate and autoevent wire
ups - as I am very happy with the HTML/Javascript over server side
control.

I thot of using menu web control only for the ease of loading my
menu.xml and rendering as a typical html using control adapters. I am
not interested in using the events of those controls.
Ofcourse I am done with initial porting. Anyway I am not getting the
css and look and feel. (But anyway I confirmed the css path hasn't
broken. It does url-rebasing perfectly.)

Is my approach correct while porting my existing website to master page
model?

What may be the reason for me not getting the styles applied. ( sorry
for being asking a code related issue)

My master page contains the link to the css.

<link href="~/styles/styles.css" type="text/css" rel="stylesheet" />

How good the master page and usercontrols gels?

Dec 26 '06 #1
2 2541
You don't say what was your motivation for switching to master pages. In no
way should you look at iframes as an old technology and master pages is the
new one. They don't compete. Some scenarios are good for iframes, other are
good for master pages and in some case you can use both. Looks like iframe
was the right idea for your app, why should you change?

Re your question on applying styles, do you have the content and the master
pages in the same directory? If they are not, you have to realize that the
resulting html knows nothing about the master page's directory. All path
references should be based on the content page location.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"n#" <ks*******@gmail.comwrote in message
news:11**********************@73g2000cwn.googlegro ups.com...
>I have an old existing website with a Header/ Left Hand Menu and a
iframe as the main body content, adjacent to the menu. So for every
click on the menu item, I used to load a aspx page on the iframe and
hence i am not loading the entire menu and header for each request.

When I try and port the above model to Master Page

1) The menu ( I thot of having the Menu Web control), Header would be
moved to the master page.

2) The each aspx page, which used to load in the iframe would now
include the master page.
Is this approach right. But I still don't see the flexibility of
loading the page only for each menu clicks.

Ofcourse I am not interested in using the viewstate and autoevent wire
ups - as I am very happy with the HTML/Javascript over server side
control.

I thot of using menu web control only for the ease of loading my
menu.xml and rendering as a typical html using control adapters. I am
not interested in using the events of those controls.
Ofcourse I am done with initial porting. Anyway I am not getting the
css and look and feel. (But anyway I confirmed the css path hasn't
broken. It does url-rebasing perfectly.)

Is my approach correct while porting my existing website to master page
model?

What may be the reason for me not getting the styles applied. ( sorry
for being asking a code related issue)

My master page contains the link to the css.

<link href="~/styles/styles.css" type="text/css" rel="stylesheet" />

How good the master page and usercontrols gels?

Dec 26 '06 #2
No, my master and the page are very well in the same directory.
Let me dig my code. I know its impossible for ppl to help with my mess
:)
Eliyahu Goldin wrote:
You don't say what was your motivation for switching to master pages. In no
way should you look at iframes as an old technology and master pages is the
new one. They don't compete. Some scenarios are good for iframes, other are
good for master pages and in some case you can use both. Looks like iframe
was the right idea for your app, why should you change?

Re your question on applying styles, do you have the content and the master
pages in the same directory? If they are not, you have to realize that the
resulting html knows nothing about the master page's directory. All path
references should be based on the content page location.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"n#" <ks*******@gmail.comwrote in message
news:11**********************@73g2000cwn.googlegro ups.com...
I have an old existing website with a Header/ Left Hand Menu and a
iframe as the main body content, adjacent to the menu. So for every
click on the menu item, I used to load a aspx page on the iframe and
hence i am not loading the entire menu and header for each request.

When I try and port the above model to Master Page

1) The menu ( I thot of having the Menu Web control), Header would be
moved to the master page.

2) The each aspx page, which used to load in the iframe would now
include the master page.
Is this approach right. But I still don't see the flexibility of
loading the page only for each menu clicks.

Ofcourse I am not interested in using the viewstate and autoevent wire
ups - as I am very happy with the HTML/Javascript over server side
control.

I thot of using menu web control only for the ease of loading my
menu.xml and rendering as a typical html using control adapters. I am
not interested in using the events of those controls.
Ofcourse I am done with initial porting. Anyway I am not getting the
css and look and feel. (But anyway I confirmed the css path hasn't
broken. It does url-rebasing perfectly.)

Is my approach correct while porting my existing website to master page
model?

What may be the reason for me not getting the styles applied. ( sorry
for being asking a code related issue)

My master page contains the link to the css.

<link href="~/styles/styles.css" type="text/css" rel="stylesheet" />

How good the master page and usercontrols gels?
Dec 26 '06 #3

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

Similar topics

2
by: Michael Sgier | last post by:
Hello i'm trying to port a windows program to linux with Kdevelop 1.question: unsigned char *LoadBitmapFile(char *filename, BITMAPINFOHEADER *bitmapInfoHeader); ...
3
by: David | last post by:
In ASP.NET 2.0, is it possible to use a control that's on a Master Page as a select parameter in a content page's datasource control? On the content page in the VWD Configure Data Source wizard...
5
by: Michael Herman \(Parallelspace\) | last post by:
1. What are some compelling solutions for using Master/Content pages with Web Pages? 2. If a content area has a web part zone with web parts, what is the user experience like when "editting" the...
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...
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...
2
by: Jon Spivey | last post by:
Hi, Using VS 2005/VB.net. I need to add a meta description tag and change a stylesheet link from a page based on a master page. Found this article...
3
by: Eetu | last post by:
Hello, Asp.net 2.0 introduced a new component Master Page. Does it do the same work like controller in MVC model or what is it's purpose? Like to know what component in Asp.Net 2.0 act like...
4
by: Boris Yeltsin | last post by:
OK, on my Master Page I have a control: <a id="hypTabAccount" href="#" runat="server">Account</a> Now, in the code-behind (Root.master.vb) I can refer to it simply thus: ...
2
by: Siberwulf | last post by:
Is it possible to access the classname (or type) of the content page from inside the master page? I'm trying to do some security model in the master page, without having to add to each individual...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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
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...

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.