Is there a way to use something like this: System.Web.Mvc.ViewUserControl<DateTime>
? I get an exception that the type is a value type, not a reference type. What is the proper way to resolve this? Thanks.
Edit
What I am trying to accomplish is having a control that takes a DateTime
to render a calendar. I want to pass in the DateTime
from my ViewData using "dot notation" for MVC.
Edit 2
I heard/seen that some MvcContrib projects might have this capability, but I can't seem to find it again.