Gridview HyperlinkField Help needed
Posted on 2014-12-24
I have a database table... Primary Key is a combination of ID and Date (DateTime format).
I am trying to call a separate page to show all Details using a QueryString to send the ID and Date keys, with their values.
Date Field format is "2014-10-07 09:31:17.000" and doesn't get sent properly via the querystring. ID works fine, no spaces.
I can only assume that Date with embedded special characters ( space and blank ) cause it to not work. Doesn't even build the HREF portion of the anchor tag in HTML, but all other parts (colors, target, etc) are done properly!
How can I URLEncode this field in ASPX file to work. I tried HTTP.Utility.UrlEncode, and other attempts to no avail?