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";