> If objPage1CSS is added to the Header for Content Page1.aspx, then
> objPage2CSS added for Content Page2.aspx, will the Header tag retain Page1
> & 2 CSS for subsequent pages (page3, page4, etc)?
The thing to realise about a MasterPage is that it's not a "page" in the way
that an aspx page is a "page" - in fact, a MasterPage is little more than a
UserControl... If the good folks who wrote ASP.NET had called them
LayoutControls instead of MasterPages, then this would have been obvious...
:-)
You say that you are new to MasterPages, so maybe you're confusing them with
framesets...?
They are totally different...
When a content page is requested, ASP.NET uses the MasterPage to construct
the HTML which will eventually be streamed down to the client - it does this
every time... The MasterPage does not remain on screen or in memory when you
request a new content page...
So, every time you request a content page which needs extra styles, they
need to be added every time - that's why the code I gave you needs to go in
the content pages' code-behind, not the MasterPage's code-behind...

Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net
Mort Strom - 02 Mar 2008 04:22 GMT
Indeed I was confusing MasterPages with framesets and your explanation has
cleared that up. Thanks again for helping bring MasterPages into clearer
focus.
On my way
Mort
>> If objPage1CSS is added to the Header for Content Page1.aspx, then
>> objPage2CSS added for Content Page2.aspx, will the Header tag retain
[quoted text clipped - 19 lines]
> need to be added every time - that's why the code I gave you needs to go
> in the content pages' code-behind, not the MasterPage's code-behind...