I have a page that has three dnnTabs on it. These tabs are of course designed within the ASCX file as follows:
<div id="panelControlPage" class="dnnForm dnnClear">
<%--------------------------------------------------%>
<%-- Tab Navigation --%>
<%--------------------------------------------------%>
<ul class="dnnAdminTabNav dnnClear">
<li><a href="#TabArea_Provider">Provider</a></li>
<li><a href="#TabArea_Locations">Locations</a></li>
<li><a href="#TabArea_Ratings">Ratings</a></li>
</ul>
</div>
<%--------------------------------------------------%>
<%-- JavaScripts To Add Tab/Panel/Section Ability --%>
<%--------------------------------------------------%>
<script language="javascript" type="text/javascript">
(function ($, Sys) {
function setupEditPage() {
$('#panelControlPage').dnnTabs().dnnPanels();
$('#TabArea_Provider .dnnFormExpandContent a').dnnExpandAll({
expandText: 'Expand All',
collapseText: 'Collapse All',
targetArea: '#TabArea_Provider'});
}
$(document).ready(function () {
setupEditPage();
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function () {
setupEditPage();
});
});
} (jQuery, window.Sys));
</script>
Depending on the user logging in, they should either see the 3rd Tab (Ratings) or not. My question is, using ASP Server-Side code...how do I "hide" a dnnTab already displayed?
-Ben