/BlogEngine/BlogEngine.NET/admin/Posts/Menu.ascx.cs
# · C# · 19 lines · 14 code · 0 blank · 5 comment · 1 complexity · 106bf22fbef5a59a5ac4b74deec3c417 MD5 · raw file
- namespace Admin.Posts
- {
- public partial class Menu : System.Web.UI.UserControl
- {
- /// <summary>
- /// Indicate that menu item selected
- /// </summary>
- /// <param name="pg">Page address</param>
- /// <returns>CSS class to append for current menu item</returns>
- protected string Current(string pg)
- {
- if (Request.Path.ToLower().Contains(pg.ToLower()))
- {
- return "class=\"content-box-selected\"";
- }
- return "";
- }
- }
- }