1. Import in Project
<src= "/assets/admin/layout/scripts/layout.js"></script>
2. Add a unique ID to the subproject item and click the current page to transfer the current unique ID to the controller.
<a href="@[email protected]" id="@item2. Idclass="icon-settings" ></i>0class="" "></span>} < /a>
3. The ID of the incoming highlight in the controller that needs to be highlighted on the main page
Public ActionResult List (string id) {VIEWBAG.CLASSID = ID. ToLower (); return View ();}
4. Set JS highlighting in the page
@section footer{ <script> jQuery (document). Ready (function () { Layout.setsidebarmenuactivelink (' Set ', $ (' # @ViewBag. CLASSID '); }); </script>}
5. Allow the project, click the current item program to automatically add the expanded and highlighted style.
ASP. Bootstrap template selected menu highlighting current Item method