To reference properties of the master page from a content page we must type
the master in the content page from which we make the reference...
// in content page
<%@ MasterType VirtualPath="~/Masters/ThreeStackedPanels.master" %>
Then we can use public properties or the FindControl method to reference
properties of a control
// control in Master Page
LinkButton navigation = Master.Page.FindControl("NavigationLinkButton") as
LinkButton;
navigation.CssClass = "SmokeyBlue";
--
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL
http://www.metromilwaukee.com/clintongallagher/
"David Lozzi" <dl****@nospam.nospamwrote in message
news:eJ**************@TK2MSFTNGP04.phx.gbl...
Howdy,
I have my master page, and I would like to change the background CSS class
per the content page. Only the home page has a different background style,
all other pages are using the same. I know I can create a new master page,
but I'd like to just change the master page from the content page if
possible.
thanks!
--
David Lozzi
dlozzi@(remove)delphi-ts.com
www.delphi-ts.com