1. 先看下webformviewengine的构造函数:
public WebFormViewEngine()
{
    
base.MasterLocationFormats = new string[] { "~/Views/{1}/{0}.master""~/Views/Shared/{0}.master" };
    
base.ViewLocationFormats = new string[] { "~/Views/{1}/{0}.aspx""~/Views/{1}/{0}.ascx""~/Views/Shared/{0}.aspx""~/Views/Shared/{0}.ascx" };
    
base.PartialViewLocationFormats = base.ViewLocationFormats;
}

相关文章: