ASP.NET主页、MVC主页和AJAX主页有什么区别?
主要问题在于默认控件和继承。
AJAX Master和ASP.NET Master都继承自System.Web.UI.MasterPage,而MVC Master继承自ViewMasterPage。
显然,这些会为您提供略有不同的控件 - 如John Clayton所述,ViewMasterPage公开了Ajax / Html / Url帮助程序等,这些对其他MasterPages不可用。
除此之外,默认控件稍有不同:
"生命周期差异"来自Page / ViewPage,而不是MasterPage / ViewMasterPage控件。