string convertUrl(string physicalBasePath, string
physicalPathToConvert,
string httpServerName, bool useHttps)
Sting deaultURL = " http://www.fusionedv.com ";
{
if(physicalPathToConvert.IndexOf(physicalBasePath)==-1)
{
//throw new ApplicationException("physicalPathToConvert
liegt
nicht in einem virtuellen Verzeichniss!");
return null;
}
else
{
physicalPathToConvert =
physicalPathToConvert.Substring(physicalBasePath.Length);
physicalPathToConvert = physicalPathToConvert.Replace("\
\","/");
physicalPathToConvert = "http" + ((useHttps) ? "s" : "") +
"://" +
httpServerName +
((physicalPathToConvert.Substring(0,1)=="/") ? "" : "/" +
physicalPathToConvert);
return physicalPathToConvert;
}