From a260fa55815ae3afb5ace635028fbd074022e9fb Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 13 Mar 2018 14:31:16 +0100 Subject: [PATCH] fix directlink! --- .vs/config/applicationhost.config | 12 ++++++------ MP-Tablet/WebUserControls/mod_directLinks.ascx | 4 ++-- MP-Tablet/WebUserControls/mod_directLinks.ascx.cs | 14 ++++++++++++++ 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/.vs/config/applicationhost.config b/.vs/config/applicationhost.config index 4c1a361d..45d32f0f 100644 --- a/.vs/config/applicationhost.config +++ b/.vs/config/applicationhost.config @@ -170,7 +170,7 @@ - + @@ -178,7 +178,7 @@ - + @@ -186,7 +186,7 @@ - + @@ -202,7 +202,7 @@ - + @@ -226,7 +226,7 @@ - + @@ -234,7 +234,7 @@ - + diff --git a/MP-Tablet/WebUserControls/mod_directLinks.ascx b/MP-Tablet/WebUserControls/mod_directLinks.ascx index f56eb818..acafe548 100644 --- a/MP-Tablet/WebUserControls/mod_directLinks.ascx +++ b/MP-Tablet/WebUserControls/mod_directLinks.ascx @@ -1,12 +1,12 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_directLinks.ascx.cs" Inherits="MoonProTablet.WebUserControls.mod_directLinks" %>
- + LINK DIRETTI - <%# Eval("Testo") %> + <%# Eval("Testo") %> diff --git a/MP-Tablet/WebUserControls/mod_directLinks.ascx.cs b/MP-Tablet/WebUserControls/mod_directLinks.ascx.cs index d20885e0..b1a11ab6 100644 --- a/MP-Tablet/WebUserControls/mod_directLinks.ascx.cs +++ b/MP-Tablet/WebUserControls/mod_directLinks.ascx.cs @@ -43,6 +43,20 @@ namespace MoonProTablet.WebUserControls return answ; } /// + /// Verifica se la pagina corrente sia URL indicato --> mostra ACTIVE + /// + /// + /// + public string cssPage(object navUrl) + { + string answ = "list-group-item list-group-item-action text-uppercase"; + if (navUrl.ToString().Replace(".aspx", "").Replace("~/", "") == titolo.Replace(".aspx", "")) + { + answ += " bg-secondary text-warning"; + } + return answ; + } + /// /// titolo pagina /// public string titolo