M
Mark Rae
Hi,
It's easy enough for a child page to manipulate its MasterPage's header
simply by modifying the MasterPage thus:
<header runat="server">
....
....
</header>
Then, in code, we can do stuff like Header.Title = "Welcome";
However, is it possible to do the same for the MasterPage's <body > tag?
Specifically, I'm looking for a way to get a child page to create the
following HTML on some pages but not on others:
<body style="BACKGROUND-POSITION: center bottom; BACKGROUND-ATTACHMENT:
fixed; BACKGROUND-IMAGE: url(images/skylinelogo.gif); BACKGROUND-REPEAT:
no-repeat">
I don't really want to have a second MasterPage just for this, because this
background image is the only change to the basic layout of this site - only
the contents of the child pages changes, obviously... However, I do
appreciate that that would be a very simple and quick workaround...
Any assistance gratefully received.
Mark
It's easy enough for a child page to manipulate its MasterPage's header
simply by modifying the MasterPage thus:
<header runat="server">
....
....
</header>
Then, in code, we can do stuff like Header.Title = "Welcome";
However, is it possible to do the same for the MasterPage's <body > tag?
Specifically, I'm looking for a way to get a child page to create the
following HTML on some pages but not on others:
<body style="BACKGROUND-POSITION: center bottom; BACKGROUND-ATTACHMENT:
fixed; BACKGROUND-IMAGE: url(images/skylinelogo.gif); BACKGROUND-REPEAT:
no-repeat">
I don't really want to have a second MasterPage just for this, because this
background image is the only change to the basic layout of this site - only
the contents of the child pages changes, obviously... However, I do
appreciate that that would be a very simple and quick workaround...
Any assistance gratefully received.
Mark