[Mono-bugs] [Bug 494245] ASP.NET Pages not accepting base class with generic type

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Apr 16 16:28:21 EDT 2009


User padcom at gmail.com added comment

--- Comment #4 from Matthias Hryniszak <padcom at gmail.com>  2009-04-16 14:28:19 MDT ---
Created an attachment (id=286224)
 --> (http://bugzilla.novell.com/attachment.cgi?id=286224)
Example usage of strongly-typed views in ASP.NET MVC

If you just navigate to http://localhost:8080 the default route kicks in and
directs you to the PersonController/Index action. That in turn renders the view
Index.aspx which is a generic view parametrized using
GenericViewTest.Models.Person. You should see the error at that point. 

To prove that it is actually working I've created a separate action on the same
controller called Details and a view called Details.aspx. The second view makes
no use of the generic declaration but instead it uses a view-local variable
called "person" and takes it from there.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list