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? 2 2573
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*******@gmai l.comwrote in message
news:11******** **************@ 73g2000cwn.goog legroups.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?
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*******@gmai l.comwrote in message
news:11******** **************@ 73g2000cwn.goog legroups.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?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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);
/home/michael/Desktop/div.OpenGL/linshootme/src/texture.h:51: error:
type specifier omitted for parameter `BITMAPINFOHEADER'
/home/michael/Desktop/div.OpenGL/linshootme/src/texture.h:51: error:
syntax error before `*' token
|
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 (which I love!), I was disappointed
when adding a WHERE clause that the Control ID list in the wizard didn't
include any of the Master Page controls. In the Design view, I can see the
drop down list I want to use on the Master Page, shadowed and just...
|
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 web part page? Does it take place at
the page level? ...or the content area level?
3. Where is the Web Part Manager instantiated? ...in the Master Page?
....Content Page? ...elsewhere?
|
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
standard ASPX page with minor modifications to it. All of my pages
inherit from a "BasePage.cs" class, that handles common things like
getting the user's information out of the session, determines if a page
should or should not be password...
|
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,
| |
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
http://msdn.microsoft.com/asp.net/reference/design/default.aspx?pull=/library/en-us/dnvs05/html/masterpages.asp#masterpages_topic8
Which seems to suggest it's possible (Listing 11 half way down the page) but
the method for adding a meta tag
Master.Page.Header.Metadata.Add("Description",...
|
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
controller in MVC.
Cheers!
|
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:
hypTabAccount.InnerText = "blah"
Now, what I want is the same in a content page that uses the Master Page. I
have a Master Type in my Content page:
|
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 page in the
solution.
Thanks in advance.
|
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...
|
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...
| |
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,...
|
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...
|
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...
|
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();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
| |