Best way to hide divs based on Roles
Hi Guys,
I have a bunch of divs that are widgets. I am using a custom role provider and I need to hide the divs based on roles. Is it better to add a "runat=server" attribute to the div so that I can hide/unhide in the code behind? Should I hide/unhide on the aspx page or do i use panel controls and hide/unhide in the code behind? I have no idea what the best way would be:confused:
Re: Best way to hide divs based on Roles
Javascript sounds like the way to go, assign the divs a class based on role required, and on page load feed in the users role to the js function.