suraj monde

suraj monde

  • NA
  • 9
  • 2k

To keep sub menu open when redirecting to the another page

Jun 9 2015 6:16 AM
how to keep toggle submenu open when redirecting to another page
i am using display:block but its open on every page load
thanks in advance
this is my code
<div id="top_menu">
<ul class="sidebar-menu" >
<li class="header"style="font-size:25px;color:#fff;background-color:#3c8dbc;font-family:Calibri;"><i class="ion-gear-b" style="font-size:25px;color:#fff;"></i><b>&nbsp;Control Panel</b></li>
<li class="menu-item">
<a href="#" id="Settings_view" runat="server" style="color:black;font-weight:600">
<i class="fa fa-wrench" style="color:#3c8dbc;"></i>Settings<i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu" runat="server">
<li runat="server"><a href="#" id="mng_user" runat="server"><i class="ion-person-stalker" style="color:#3c8dbc;"></i>&nbsp;&nbsp;&nbsp;Manage Users <i class="fa fa-angle-left pull-right"></i></a>
<ul class="treeview-menu">
<li class="" id="AddUser" runat="server"><a href="AddUser.aspx?menu=foo&item=bar" id="AddUserInfo" runat="server" visible="false"><i class="ion-person-stalker" style="color:#3c8dbc;"></i> &nbsp;&nbsp;Register User </a></li>
<li class="" id="ListUser" runat="server"><a href="ListOfAllUser.aspx" id="ListofUser" runat="server" visible="false" ><i class="fa fa-check-square" style="color:#3c8dbc;"></i>List of Users </a></li>
</ul>
</li>
<li><a href="#" id="AppSetting" runat="server"><i class="fa fa-cogs" style="color:#3c8dbc;"></i>App Settings <i class="fa fa-angle-left pull-right"></i></a>
<ul class="treeview-menu" >
<li class="" id="mregion" runat="server"><a href="AddRegion.aspx" id="ManageRegion" runat="server" visible="false"><i class="ion-contrast" style="color:#3c8dbc;"></i>&nbsp;&nbsp;&nbsp;Region </a>
</li>
<li class="">
<a href="AddGeoZone.aspx" id="GeoZone" runat="server" visible="false"><i class="ion-navigate" style="color:#3c8dbc;"></i>&nbsp;&nbsp;Geo Zone</a>
</li>
<li class="treeview"><a href="Controller_demo.aspx" id="AddController" runat="server" visible="false"><i class="ion-ipad" style="color:#3c8dbc;"></i>&nbsp;&nbsp;&nbsp;Controller </a>
</li>
</ul>
</li>
<li><a href="ControllerMap.aspx" id="MapView" runat="server" visible="false"><i class="fa fa-clock-o" style="color:#3c8dbc;"></i>Map View</a></li>
<li><a href="AlarnManager.aspx" id="ManageAlarm" runat="server" visible="false"><i class="fa fa-clock-o" style="color:#3c8dbc;"></i>Alarms Settings</a></li>
<li ><a href="Schedule.aspx" id="Scheduler" runat="server" visible="false"><i class="fa fa-calendar-o" style="color:#3c8dbc;"></i>Scheduler</a></li>
<li ><a href="OutgoingMail.aspx" id="Outgoingmail" runat="server" visible="false"><i class="fa fa-envelope-o" style="color:#3c8dbc;"></i>Mail-SMS Test</a></li>
</ul>
<li class="treeview" >
<a href="#" id="Ana_lysis" runat="server" style="color:black;font-weight:600;"><i class="fa fa-files-o" style="color:#3c8dbc;"></i>Analysis<i class="fa fa-angle-left pull-right"></i></a>
<ul class="treeview-menu"style="display:block">
<li >
<a href="#" id="Table_view" runat="server"><i class="fa fa-table" style="color:#3c8dbc;"></i>Table View<i class="fa fa-angle-left pull-right"></i></a>
<ul class="treeview-menu" style="display:block">
<%--<li class="active"><a href="TControllerStatus.aspx" id="TControllerStatus1" runat="server" visible="false"><i class="fa fa-gamepad" style="color:#3c8dbc;"></i> 3 Phase Status </a></li>--%>
<li class="active"><a href="CCMSControllerStatus.aspx" id="TControllerStatusRealTime" runat="server" visible="false">Controller Status(RealTime) </a></li>
<li class="active"><a href="EnergyMeterStatus.aspx" id="TEnergyMeterStatus1" runat="server" visible="false"><i class="fa fa-align-left" style="color:#3c8dbc;"></i> Meter Params </a></li>
<li class="active"><a href="MeterFailureAnalysis.aspx" id="TMeterFailureAnalysis1" runat="server" visible="false"><i class="fa fa-level-down" style="color:#3c8dbc;"></i> Meter Failure </a></li>
<li class="active"><a href="LampfailureAnalysis.aspx" id="TLampFailure1" runat="server" visible="false"><i class="fa fa-lightbulb-o" style="color:#3c8dbc;"></i> Lamp Failure </a></li>
<li class="active"><a href="Alarm.aspx" id="TAlarm1" runat="server" visible="false"><i class="fa fa-bullhorn" style="color:#3c8dbc;"></i> Alarm Status </a></li>
</ul>
</li>
<li><a href="#" id="History_view" runat="server"><i class="fa fa-history" style="color:#3c8dbc;"></i>History View<i class="fa fa-angle-left pull-right"></i></a>
<ul class="treeview-menu">
<%-- <li class="active"><a href="HistoryControllerStatus.aspx" id="HControllerStatus" runat="server" visible="false"><i class="fa fa-gamepad" style="color:#3c8dbc;"></i> 3 Phase Status </a></li>--%>
<li class="active"><a href="EnergyMeterHistory.aspx" id="HEnergyMeterStatus" runat="server" visible="false"><i class="fa fa-align-left" style="color:#3c8dbc;"></i> Meter Params </a></li>
<li class="active"><a href="MeterFailureHistory.aspx" id="HMeterFailure" runat="server" visible="false"><i class="fa fa-level-down" style="color:#3c8dbc;"></i> Meter Failure </a></li>
<li class="active"><a href="LampFailureHistory.aspx" id="HLampFailure" runat="server" visible="false"><i class="fa fa-lightbulb-o" style="color:#3c8dbc;"></i> Lamp Failure </a></li>
<li class="active"><a href="HistoryAlarmSt.aspx" id="HAlarmStatus" runat="server" visible="false"><i class="fa fa-bullhorn" style="color:#3c8dbc;"></i> Alarm Status </a></li>
</ul>
</li>
<%-- <li><a href="#" id="Command_dd" runat="server"><i class="fa fa-codepen" style="color:#3c8dbc;"></i>Commands<i class="fa fa-angle-left pull-right"></i></a>--%>
<%--<ul class="treeview-menu">
<li class="active"><a href="ManageCommand.aspx" id="ManageCommand" runat="server" visible="false"><i class="fa fa-list" style="color:#3c8dbc;"></i> List Of Command </a></li>
<li class="active"><a href="SendCommand.aspx" id="SendCommand" runat="server" visible="false"><i class="fa fa-share-square-o" style="color:#3c8dbc;"></i> Send Command </a></li>
<%-- <li class="active"><a href="CommandMeterFailure.aspx" id="CMeterFailure" runat="server" visible="false"> Meter Failure </a></li>--%>
<%-- <li class=""><a href="CommandHistory.aspx" id="CommandHistory" runat="server" visible="false"><i class="fa fa-history" style="color:#3c8dbc;"></i> Command History</a>
</li>--%>
<%-- </ul>--%>
<%-- </li>--%>
</ul>
</li>
<li class="treeview">
<a href="#" id="Command_dd" runat="server" style="color:black;font-weight:600"><i class="fa fa-codepen" style="color:#3c8dbc;"></i>Commands<i class="fa fa-angle-left pull-right"></i></a>
<ul class="treeview-menu">
<li class=""><a href="ManageCommand.aspx" id="ManageCommand" runat="server" visible="false"><i class="fa fa-list" style="color:#3c8dbc;"></i> List Of Command </a></li>
<li class=""><a href="SendCommand.aspx" id="SendCommand" runat="server" visible="false"><i class="fa fa-share-square-o" style="color:#3c8dbc;"></i> Send Command </a></li>
<%-- <li class="active"><a href="CommandMeterFailure.aspx" id="CMeterFailure" runat="server" visible="false"> Meter Failure </a></li>--%>
<li class=""><a href="CommandHistory.aspx" id="C_CommanHistory" runat="server" visible="false"><i class="fa fa-history" style="color:#3c8dbc;"></i> Command History</a>
</li>
<li class=""><a href="ResponseHistory.aspx" id="C_ResponseHistory" runat="server" visible="false"><i class="fa fa-history" style="color:#3c8dbc;"></i> Response History</a>
</li>
</ul>
</li>
<li class="treeview">
<a href="#" id="Report_vi" runat="server" style="color:black;font-weight:600">
<i class="fa fa-pie-chart" style="color:#3c8dbc;"></i>
Report
<i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<%-- <li><a href="EnergyFailureReport.aspx" id="REnergyUsage" runat="server" visible="false"><i class="fa fa-gamepad" style="color:#3c8dbc;"></i> 3 Phase status</a></li>--%>
<li ><a href="MeterParamReport.aspx" id="RFailureLog" runat="server" visible="false"><i class="fa fa-align-left" style="color:#3c8dbc;"></i> Meter Params</a></li>
<li><a href="MeterfailureReport.aspx" id="Rmeterfailure" runat="server" visible="false"><i class="fa fa-level-down" style="color:#3c8dbc;"></i> Meter Failure</a></li>
<li><a href="LampFailureReport.aspx" id="RLampfailure" runat="server" visible="false"><i class="fa fa-lightbulb-o" style="color:#3c8dbc;"></i> Lamp Failure</a></li>
<li><a href="AlarmStatusReport.aspx" id="RAlarmstatus" runat="server" visible="false"><i class="fa fa-bullhorn" style="color:#3c8dbc;"></i> Alarm Status</a></li>
</ul>
</li>
</di

Answers (1)