ASP.Net MVC, strongly typed view with DateTime not accepted?
Posted
by Anders Juul
on Stack Overflow
See other posts from Stack Overflow
or by Anders Juul
Published on 2010-05-05T05:45:51Z
Indexed on
2010/05/05
5:48 UTC
Read the original article
Hit count: 438
Hi all, I wish to create a view like
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<System.DateTime?>" %>
but I get an error saying that DateTime must be a reference type in order to use for parameter TModel.
Fair enough, but I google plenty of examples that implement just what I try to achieve.
Any clues as to what I need to change/install/update?
Any comments welcome,
Anders, Denmark
© Stack Overflow or respective owner