Hi Team
I have _SidebarMenuLayout, but i want to find a way to route to another controller not home( I have another unique controller name.).
- //_SideBarMenuLayout.cshtml
- class="sidebar-wrapper">
- "accordion"
class="link">class="fa fas fa-user-alt">Accountsclass="fa fa-chevron-down">- class
- "@Url.RouteUrl("
SuperAdmin")">SuperAdmin- "#"
>User-Account- // Route.config
- // Route to SuperAdmin
- routes.MapRoute(
- name:"SuperAdmin",
- url:"administrator/",
- defaults:new {controller= "Home", action= "SuperAdmin", url = UrlParameter.Optional}
- );
- // How to call this controller inside _SideBarMenuLayout.cshtml?
- // Rooute to AddtoCart.
- routes.MapRoute(
- name: "eNtsaPaymentOrders/",
- url:"add-to-card",
- defaults:new {controller = "eNtsaAddToCard", action = "eNtsaPaymentOrders", id = UrlParameter.Optional }
- );

Sachin SinghRank #66 · 26.2K reputationPosted Dec 1, 2020, 2:07 AM EST
Guest UserRank #877 · 2.5K reputationPosted Dec 1, 2020, 2:44 AM EST
class="submenu">
Sachin SinghRank #66 · 26.2K reputationPosted Dec 1, 2020, 3:06 AM EST
Guest UserRank #877 · 2.5K reputationPosted Dec 2, 2020, 12:16 AM EST
Guest UserRank #877 · 2.5K reputationPosted Dec 2, 2020, 12:45 AM EST
class
="submenu">