建立:
问题:
当一个视图强类型,如:<@ Page Inherits="CustomViewPage<MyCustomObject" MyCustomProperty="Hello">,我得到一个编译器"Parser"错误,指出MyCustomProperty不是System.Web.Mvc.ViewPage的公共属性
<@ Page Inherits="CustomViewPage<MyCustomObject" MyCustomProperty="Hello">
我做了很多试验和错误(见下文),看看是什么导致了这个错误,得出了以下结论:
asp.net-mvc view
asp.net-mvc ×1
view ×1