PC Review


Reply
Thread Tools Rate Thread

Accessing Master Page elements from Content

 
 
daokfella
Guest
Posts: n/a
 
      9th Feb 2007
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

 
Reply With Quote
 
 
 
 
Mark Rae
Guest
Posts: n/a
 
      9th Feb 2007
"daokfella" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> 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>;


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing Content Placeholder in nested master content page John Microsoft ASP .NET 2 15th Jan 2008 11:48 AM
Master-Content in Asp.net - How to set individual Head for each content page Rolf Welskes Microsoft ASP .NET 7 22nd Aug 2006 03:47 PM
limit on number of content placeholders(which are editable in content pages) in master page nemesis.saurabh@gmail.com Microsoft ASP .NET 0 25th May 2006 05:44 AM
Accessing method in master page from content page =?Utf-8?B?UmlrIEJyb29rcw==?= Microsoft C# .NET 4 23rd Dec 2005 12:23 PM
Master page elements =?Utf-8?B?Sm9Bbm5lIFNpbQ==?= Microsoft Powerpoint 20 26th Apr 2005 04:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:01 PM.