Hi,
I am using a menu control in my Master page like this
<asp:Menu ID="Menu1" runat="server" BackColor="#69696B" DataSourceID="SiteMapDataSource1" DynamicHorizontalOffset="0" Font-Names="Verdana" Font-Size="12px" ForeColor="#D7D7D9"StaticSubMenuIndent="10px" Orientation="Horizontal">
<StaticMenuItemStyle HorizontalPadding="2px" VerticalPadding="2px" BorderWidth="1px" /><DynamicMenuItemStyle HorizontalPadding="2px" VerticalPadding="2px" />
<DynamicHoverStyle BackColor="#D7D7D9" ForeColor="#B5121B" /><DynamicMenuStyle BackColor="#69696B" BorderStyle="Solid" BorderWidth="1px" /><StaticSelectedStyle BackColor="#D7D7D9" ForeColor="#B5121B" /><DynamicSelectedStyle BackColor="#69696B" /> <StaticHoverStyle BackColor="#D7D7D9" ForeColor="#B5121B" />
</asp:Menu>
and the sitemapdatasource is as follows, the dataset is comming from the database
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="False" />
I need to get the NavigateUrl string to local variable in Master Page_Load event, i tried to get it from the menu.SelectedItem.NavigateUrl, its giving null value
Also i tried to get the NavigateUrl from MenuItemClick event, but not solved.
Please help me to solve this issue ASAP.
Waiting for your reply.