have placed the following code for menu in my master page. I have changed the datasource of the menu. Now it is not showing the selected link. CSS are fine because on HOVER it is highlighting it.
This is menu.
<SharePoint:AspMenu
ID="TopNavigationMenu"
Runat="server"
DataSourceID="siteMapDataSource1"
EnableViewState="false"
AccessKey="<%$Resources:wss,navigation_accesskey%>"
Orientation="Horizontal"
StaticDisplayLevels="2"
MaximumDynamicDisplayLevels="1"
DynamicHorizontalOffset="0"
StaticPopoutImageUrl="/_layouts/images/menudark.gif"
StaticPopoutImageTextFormatString=""
DynamicHoverStyle-BackColor="#CBE3F0"
SkipLinkText=""
StaticSubMenuIndent="0"
CssClass="menuStyle">
<StaticMenuItemStyle CssClass="menuItemStyle" ItemSpacing="0px"/>
<StaticSelectedStyle CssClass="menuStyleHover" />
<StaticHoverStyle CssClass="menuStyleHover" />
</SharePoint:AspMenu>
This is datasource for menu.
<PublishingNavigation
ortalSiteMapDataSource ID="siteMapDataSource1" Runat="server"
SiteMapProvider="CombinedNavSiteMapProvider" EnableViewState="true"
StartFromCurrentNode="true" StartingNodeOffset="0" ShowStartingNode="false"
TreatStartingNodeAsCurrent="true" TrimNonCurrentTypes="Heading"/>
I had to change the datasource because my site was a publishing site and it was creating an extra menu item (by the name of the site) so I changed datasource. Now it is not showing the selected link. I mean when I click any menu item it goes to that page but in menu it is not highlighted as selected link. It was working well before I changed the datasource. Any solution to this problem?
Thanx in advance.