using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CodeCafe.Web; public partial class ucAdminOrderMenu : System.Web.UI.UserControl { /****************************************************************************************************/ /// /// Handles the Load event of the Page control. /// /// The source of the event. /// The instance containing the event data. protected void Page_Load(object sender, EventArgs e) { HiglightMenu(); } /****************************************************************************************************/ /// /// Higlights the menu. /// public void HiglightMenu() { switch (Utils.GetWebFilename(Request.Url.AbsolutePath).ToUpper()) { case "ADMIN-ORDERS.ASPX": hlOrders.CssClass = "sel"; break; case "ADMIN-USERS.ASPX": hlUsers.CssClass = "sel"; break; } } }