diff --git a/MP-TAB/MP-TAB.csproj b/MP-TAB/MP-TAB.csproj index 53ffcc7f..2313f2d6 100644 --- a/MP-TAB/MP-TAB.csproj +++ b/MP-TAB/MP-TAB.csproj @@ -744,12 +744,6 @@ - - Designer - - - Designer - Web.config diff --git a/MP-TAB/Web-SQL2012.config b/MP-TAB/Web-SQL2012.config deleted file mode 100644 index ae8931f3..00000000 --- a/MP-TAB/Web-SQL2012.config +++ /dev/null @@ -1,193 +0,0 @@ - - - - - -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/MP-TAB/Web-SQL2016.config b/MP-TAB/Web-SQL2016.config deleted file mode 100644 index c42b7d77..00000000 --- a/MP-TAB/Web-SQL2016.config +++ /dev/null @@ -1,194 +0,0 @@ - - - - - -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/MP-TAB/WebUserControls/mod_title.ascx.cs b/MP-TAB/WebUserControls/mod_title.ascx.cs index fcbb59ac..c46f5b6a 100644 --- a/MP-TAB/WebUserControls/mod_title.ascx.cs +++ b/MP-TAB/WebUserControls/mod_title.ascx.cs @@ -112,7 +112,7 @@ namespace MoonProTablet.WebUserControls try { HttpCookie cookie = Request.Cookies[memLayer.ML.CRS("cookieName")]; - if (cookie == null || cookie.Value == "") + if (cookie == null || string.IsNullOrEmpty(cookie.Value)) { // rimando pagina x registrazione devices logger.lg.scriviLog("Cookie non valido / non trovato", tipoLog.STARTUP); @@ -132,7 +132,7 @@ namespace MoonProTablet.WebUserControls string Dominio = ""; try { - logger.lg.scriviLog(string.Format("Cookie trovato con devSecret {0}", devSecret), tipoLog.STARTUP); + logger.lg.scriviLog($"Cookie trovato con devSecret {devSecret}", tipoLog.STARTUP); device = DataWrap.DW.taAnagDev.getByDeviceSecret(devSecret)[0]; UsrName = device.User_Name; Dominio = device.Dominio; @@ -140,11 +140,11 @@ namespace MoonProTablet.WebUserControls } catch (Exception exc) { - logger.lg.scriviLog(string.Format("Errore recupero dati da cookie:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION); + logger.lg.scriviLog($"Errore recupero dati da cookie:{Environment.NewLine}{exc}", tipoLog.EXCEPTION); } - if (UsrName != "" && Dominio != "") + if (!string.IsNullOrEmpty(UsrName) && !string.IsNullOrEmpty(Dominio)) { - logger.lg.scriviLog(string.Format("Dati utente da cookie: dominio {0}, user:{1}", Dominio, UsrName), tipoLog.STARTUP); + logger.lg.scriviLog($"Dati utente da cookie: dominio {Dominio}, user:{UsrName}", tipoLog.STARTUP); // aggiorno descrizione (user agent) ed IP... userAgent = Request.UserAgent; postazione_IP = Request.UserHostName; @@ -162,14 +162,14 @@ namespace MoonProTablet.WebUserControls // svuoto cookie... memLayer.ML.emptyCookieVal(memLayer.ML.CRS("cookieName")); // rimando pagina x registrazione devices - logger.lg.scriviLog(string.Format("Dominio / UsrName non validi / non trovati:{0}devSec:{1}{0}UsrName{2}{0}Dominio{3}", Environment.NewLine, devSecret, UsrName, Dominio), tipoLog.STARTUP); + logger.lg.scriviLog($"Dominio / UsrName non validi / non trovati:{Environment.NewLine}devSec:{devSecret}{Environment.NewLine}UsrName{UsrName}{Environment.NewLine}Dominio{Dominio}", tipoLog.STARTUP); Response.Redirect("~/regNewDevice.aspx"); } } } catch (Exception exc) { - logger.lg.scriviLog(string.Format("Errore in checkAuthCookie:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION); + logger.lg.scriviLog($"Errore in checkAuthCookie:{Environment.NewLine}{exc}", tipoLog.EXCEPTION); } }