ASP.NET MVC - Why doesn't my view inherits properly from System.Web.Mvc.ViewPage(of T)
问题 It should be possible to use generics here and pass the class-type of the Model. However this is not accepted by Visual Studio 2008: <%@ Page Inherits="System.Web.Mvc.ViewPage(of IEnumerable(of MyNamespace.MyClass))" %> I get the following validation-error (underlined in VS): 'Context' is not a member of 'ASP._views___home___index__asp' I get the following runtime error: BC30456: 'InitializeCulture' is not a member of 'ASP._views___home___index__asp'. Note, I am using Visual Basic.NET - but