Change BasePage.cs

This commit is contained in:
Sergei Malkin 2021-10-26 14:41:06 +03:00 committed by svetlana maleeva
parent a28b00107c
commit fd4d4b2e3e

View File

@ -58,7 +58,7 @@ public class BasePage : Page
private bool IsContentExists(string contentName, string cultureKey)
{
string fileName = GetContentFileNameByCulture(contentName, cultureKey);
return File.Exists(MapPath(fileName));
return File.Exists(MapPath(fileName)) || Directory.EnumerateFiles(MapPath("~/Bin/"), Path.GetFileName(fileName) + ".*.compiled").Any();
}
public string GetContentFileName(string contentName, bool isVirtualPath)