update checlk TAB x immagini scheda tecnica
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user