这是一段程序代码。
-
ViewEngines.Engines.Add(new WebFormViewEngine
-
{ -
ViewLocationFormats = new string[] -
{ -
"~/Views/Shared/Error/{0}.aspx" -
}, -
PartialViewLocationFormats = new string[] -
{ -
"~/Views/Shared/Partial/{0}.ascx" -
}, -
MasterLocationFormats = new string[] -
{ -
"~/Views/Shared/Master/{0}.Master" -
},
-
AreaMasterLocationFormats = new string[] -
{ -
"~/Areas/{1}/Share/Master/{0}.Master" -
} -
});