From 111067b422df3377e4aaa194659b9d0bbf6f1415 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Thu, 10 Dec 2020 15:40:18 +0100 Subject: [PATCH] update checlk TAB x immagini scheda tecnica --- MP-TAB/WebUserControls/cmp_ST_objView.ascx.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MP-TAB/WebUserControls/cmp_ST_objView.ascx.cs b/MP-TAB/WebUserControls/cmp_ST_objView.ascx.cs index 0708a6d2..8a48c465 100644 --- a/MP-TAB/WebUserControls/cmp_ST_objView.ascx.cs +++ b/MP-TAB/WebUserControls/cmp_ST_objView.ascx.cs @@ -90,6 +90,7 @@ namespace MoonProTablet.WebUserControls get { string imgPath = ""; + string fullPath = ""; //check type... if (dataType == "IMG") { @@ -99,8 +100,9 @@ namespace MoonProTablet.WebUserControls // aggiungo base path imgPath = $"~\\images\\ST_img\\{imgPath}"; } + fullPath = Server.MapPath(imgPath); // verifico esistenza file... - if (!File.Exists(imgPath)) + if (!File.Exists(fullPath)) { // metto segnaposto empty imgPath = "~\\images\\ST_img\\Steamware.png";