update checlk TAB x immagini scheda tecnica

This commit is contained in:
Samuele E. Locatelli
2020-12-10 15:40:18 +01:00
parent d152641627
commit 111067b422
@@ -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";