Thursday, 2 September 2010

How to hide / show controls on a Master Page depending on the Content Page

I have recently had a problem where I needed to disable a button on a master page depending on which page is being displayed in one or more of the content place holders. Basically you can check the type or path of the page being displayed in the place holder.

This is easily achievable with the following code:

No comments:

Post a Comment