PC Review


Reply
Thread Tools Rate Thread

Access method in master's master

 
 
John
Guest
Posts: n/a
 
      24th Jan 2008
Hi there,

I'm trying to access a method in a nested master, so far without much
success.

The structure is as follows:

'Main master' (containing public menu setting method) is master to 'Sub
master', both of which are at the site root. The 'Sub master' is master to
'Content page' in a folder.

Master.SetMenu("Products") - works if just used on a test content page at
the root, but...
Master.Master.SetMenu("Products") - fails with an error saying 'SetMenu' is
not a member of 'System.Web.UI.MasterPage'. I understand the error, but how
can I access a method in a master's master?

Thanks

John

PS - I'm using <%@ MasterType VirtualPath="~/Sub.master" %> (and
"~/Main.master") in the respective masters.





 
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
Ppnt 07 Header & Footer dialog box/Notes Master & Handout master Teresa Microsoft Powerpoint 2 30th Jun 2008 10:47 AM
Access Child Method From Master Page in C#? Nigil Chua Microsoft Dot NET Framework 1 23rd Feb 2008 03:14 PM
Access method in master's master John Microsoft ASP .NET 4 26th Jan 2008 03:29 PM
FSMO Advise Sought (Schema Master & Domain Naming Master) The Flying Dutchman Microsoft Windows 2000 4 16th Feb 2005 12:35 AM
RAID on Master/Master or Master/Slave? no_one Asus Motherboards 4 31st Jan 2004 05:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:44 PM.