I have a masterpage and a menu with contentpages. If I go to content page A.aspx I want the menu item o have the css class selected. If I gi to B.aspx I want the B menu item inside the master page to appear seleced(have the cssClass=’seleced’). How can I implement this easily on an asp.net master page?
Share
After some research this doesn’t seem to be the easiest thing to accomplish unless your building your site as MS intended.
If you have a web.sitemap(xml-)file then its really easy because you get that functionality by default.
That means that you must add a datasource to your menu and use the sitemap-file as datasource. I don’t know how it works with other datasources but I really hope ASP.NET is smart enough to fix it.
You could check this out for a walkthrough