Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Master Page - controlling links
Message
De
29/10/2008 16:40:15
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01358074
Message ID:
01358188
Vues:
15
>>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
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform