update metodi x ricerca file...
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using MapoDb;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
|
||||
namespace MoonProTablet.WebUserControls
|
||||
@@ -179,8 +180,13 @@ namespace MoonProTablet.WebUserControls
|
||||
try
|
||||
{
|
||||
string filePath = docFilePath(Disegno);
|
||||
fileMover.obj.setDirectory("");
|
||||
answ = fileMover.obj.fileExist(filePath);
|
||||
answ = fileMover.obj.fileExist(HttpRuntime.AppDomainAppPath, filePath);
|
||||
// tolgo eventuale "~/" se non trova
|
||||
if (!answ)
|
||||
{
|
||||
answ = fileMover.obj.fileExist(HttpRuntime.AppDomainAppPath, filePath.Replace("~/", ""));
|
||||
}
|
||||
#if false
|
||||
// se non trova provo a sostituire "~/" con "./"
|
||||
if (!answ)
|
||||
{
|
||||
@@ -202,7 +208,8 @@ namespace MoonProTablet.WebUserControls
|
||||
{
|
||||
fileMover.obj.setDirectory(Server.MapPath(""));
|
||||
answ = fileMover.obj.fileExist(filePath.Replace("~/", ""));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user