forum

Home / DeveloperSection / Forums / Highlighting the menu item.

Highlighting the menu item.

Munikumar G376701-Nov-2011

Hi,

I am using Menu controls like this.how can i highlighting the menu item here.

<%
 
@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%
if (Request.IsAuthenticated) {
%>
Welcome
<b><%: Page.User.Identity.Name %></b>!
[ <%
: Html.ActionLink("Log Off", "LogOff", "Account") %> ]
<%
}
else {
%>
<ul id="top-navigation">
<li><span><span><%: Html.ActionLink("Dashboard", "Index", "AppHome")%></span></span></li>
<li><span><span><%: Html.ActionLink("Index", "Index", "AppHome")%></span></span></li>
  
<li><span><span><%: Html.ActionLink("About", "About", "AppHome")%></span></span></li>
</ul>
<%
}
%>

 In site.master using like this.

<% Html.RenderPartial(

"LogOnUserControl"); %></div>

Thanks

Munikumar


Updated on 26-Dec-2011
Good softwaresolution

Can you answer this question?


Answer

6 Answers

Liked By