private string GetViewPath(string[] locations, string viewName,string controllerName)
{
for (int i = 0; i < locations.Length; i++)
{
path = string.Format(System.Globalization.CultureInfo.InvariantCulture, locations[i],
new object[] { viewName, controllerName });
if (this.VirtualPathProvider.FileExists(path))
{
return path;
}
}
return null;
}
private string GetViewPath(string[] locations, string viewName,string controllerName)
{
return pPaths.Where(pp => pp.Name == controllerName && pp.ciewName= viewName ).First().Path();
}
10 Haziran 2010 Perşembe
MVC virtualPathProvider
Kaydol:
Kayıt Yorumları (Atom)
Hiç yorum yok:
Yorum Gönder