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....
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 SinghPosted Aug 5, 2021, 1:10 PM
Bhavesh VankarPosted Aug 5, 2021, 12:20 PM
i have apply code for link as below
it showing me url as :- http://localhost:xxxx/About/About/Company
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...
Sachin SinghPosted Aug 5, 2021, 11:09 AM