Accessing Master Page elements from Content

  • Thread starter Thread starter daokfella
  • Start date Start date
D

daokfella

Hi all,

I've only just started to use ASP.Net 2.0. I'm an experienced ASP.Net
developer and had a question regarding master pages.

Can you interact with elements that exist on the master page template?
For instance, let's say I wanted to show menu items on the master
page. Depending on what content page I'm on, I want to highlight the
specific menu item in my header. Or perhaps, I may want to add
querystring values to hyperlink controls on the master page template.

Can you point me to a resource that may discuss this further? Thanks.

Jason
 
Can you interact with elements that exist on the master page template?

There's no trickery to MasterPages - a MasterPage is just a UserControl like
any other UserControl...

this.Master.FindControl(<control>).<property> = <value>;
 
Back
Top