I'm looking to show or hide portions of navigations by hiding their container divs in .net, and my navigation is in a master page.
How the hell can I do this without using findControl in every single page I create to show / hide the relevant Divs?
I know you can set the visibility of Divs within the aspx portion of a content page, but what I want to do is to set the visibility of a master page div from true to false using a function that's within the master page.
So within my content page, I just want to say:
Any thoughts?
How the hell can I do this without using findControl in every single page I create to show / hide the relevant Divs?
I know you can set the visibility of Divs within the aspx portion of a content page, but what I want to do is to set the visibility of a master page div from true to false using a function that's within the master page.
So within my content page, I just want to say:
Code:
divViewable("divName",false)
Any thoughts?