Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
506 Points
99 Posts
Dec 13, 2007 09:02 AM|LINK
You need to use the standard CLR notation for generics. For example, I have an Error Handling View which deals with processing exceptions. The view inherits from ViewPage<Exception> so this is what you'd have in the view:
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage`1[[System.Exception, mscorlib]]" %>
Hope this is useful.
JeremyS
Member
506 Points
99 Posts
Re: Typed ViewPage Using Generics Without Code Behind
Dec 13, 2007 09:02 AM|LINK
You need to use the standard CLR notation for generics. For example, I have an Error Handling View which deals with processing exceptions. The view inherits from ViewPage<Exception> so this is what you'd have in the view:
Hope this is useful.