Hi,
I'm trying to pass a DateTime value (Start_Date) to an ActionResult used by a template, but seems it is always null (other arguments string and int format are ok), changing type from dateTime to string seems to work, the value is a not null datetime string version but I would like to use directly the datetime, any suggestion?
(index.cshtml)
columns.Bound(p => p.Start_Date).Format("{0:dd/MM/yyyy}");
columns.Template(@<text></text>).ClientTemplate(
"<a href='" +
Url.Action("Details", "Data_Values") +
"/?ContactID=#=Contact_ID#&SerialNumber=#=Serial_Number#&StartDate=#=Start_Date#'" +
">Details</a>").Width("100px");
(controller Data_ValuesController)
public ActionResult Details(int? ContactID, DateTime? StartDate, String SerialNumber)
{
[...]