can i display sub navigation bar name with its main menu name
suppose my main navigation bar name is :- Services
and sub menu is :- Web Designing, software Developing, Hosting etc.
if user click on Software Developing then it's url should be display on address bar like
Services/Software-Developing
can it possible and how to write it....?
i have try it as below....
C#
public static void RegisterRoutes (RouteCollection urlRouting)
{
urlRouting.MapPageRoute("", "Home", "~/Home.aspx");
urlRouting.MapPageRoute("", "About", "~/About.aspx");
urlRouting.MapPageRoute("Services", "Web-Developing", "~/WebDeveloping.aspx");
urlRouting.MapPageRoute("Services", "Web-Hosting", "~/WEbHosting.aspx");
urlRouting.MapPageRoute("Services", "Software-Developing", "~/SoftwareDeveloping.aspx");
}
but its not working how to do it...?


Sachin SinghRank #66 · 26.2K reputationPosted Aug 5, 2021, 9:10 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Aug 5, 2021, 7:09 AM EDT
Bhavesh VankarRank #1,147 · 1.6K reputationPosted Aug 5, 2021, 8:20 AM EDT
i have apply code for link as below
it showing me url as :- http://localhost:xxxx/About/About/Company
urlRouting.MapPageRoute("Services1", "Services/Software-Developer", "~/SoftwareDeveloper.aspx"); urlRouting.MapPageRoute("Services2", "Services/Web-Developing", "~/WebDeveloping.aspx"); urlRouting.MapPageRoute("Services3", "Services/Web-Designing", "~/WebDesigning.aspx");but it occur error i have assign as per your code in global....
error is
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
but i have one issue... when i try to below code it not working and showing red lines...