I generated a View using VS 2010 functionality. This auto code generation created this code:
<%: Html.TextBoxFor(model => model.DateDeleted, String.Format("{0:g}", Model.DateDeleted)) %>
I created a custom helper method (extension method) to create a JQuery Calendar control. This is the syntax for this control on the View:
<%= Html.DatePicker("Date", "../../content/images/calendar.gif", Model.DateDeleted)%>
How can I bind this to the data coming from my Controller? The Html.TextBoxFor allows a Lambda Expression in its signature. Here is the signature of the DatePicker code:
public static string DatePicker(this HtmlHelper helper, string name, string imageUrl, object date)
I am not sure how to wire the DatePicker with data coming from the Controller. Any help would be very much appreciated.