I’m having a problem passing a date value from a GridView generated HyperLinkField to another page. Through some searching, I believe I’m using the correct syntax to generate the link, but whenever I try to bind a date to the DataNavigateUrlFields property, it won’t create the hyper link. The method that I’m using does work when passing other fields.
This is the code I’m using.
<asp:HyperLinkField
DataNavigateUrlFields="DATE_REF,STUDENT_ID,ASSIGN_ID"
DataNavigateUrlFormatString="Edit.aspx?DATE_REF={0}&STUDENT_ID={1}&ASSIGN_ID={2}"
HeaderText="Edit"
Text="<img src='/Images/edit.png' alt='Update' border='0'/>" />
how could I solve this ?
Try with Date Format String
{0:d},Source