Hi, I'm doing a custom template in my MVC app, something like this:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<input type="text" id="date" />
And in my POCO I refer to this ascx file like this.
[UIHint("DatePicker")]
public DateTime CreatedOn { get; set;}
So I was wondering how can I send a parameter in this UIHint that I can put in the UIHint like this:
[UIHint("DatePicker",null,"name","ThisIsTheNameValue")]
public DateTime CreatedOn { get; set;}
And retrieve it in the ascx file to end with this:
<input type="text" name="ThisIsTheNameValue" id="date" />
Thanks for your time.