Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Master Page - controlling links
Message
 
 
To
29/10/2008 16:40:15
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01358074
Message ID:
01358194
Views:
16
>>>Hi All,
>>>
>>>Ok, another master page question. I know I have seen some info on this somewhere but can't remember where. I have a master page that has links to other pages on it. If I am on one of those pages, I want to either hide the link or disable it since we are already on that page. I am not sure if I can get to the master page from the content page or not, but also can I detect which content page is loaded from the master? How can I do this?
>>>Thanks
>>>Tim
>>
>>I'm guessing you don't want to do this from the child, which seems to be easier. Perhaps you can add this functionality to your child page parent class if you use any.
>
>
>My preference is to put the code in once in one place and that would be the master page to determine which page it is on and disable that link. If I put in the content page, then I would be looking to put it in the base page only once. From a sense of putting the code where the controls are it would be better in the master.
>Thanks for your comments
>Tim

I agree, sounds much better.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform