how to encode a datetime in a QueryString and read it in the asp:QueryStringParameter

Posted by DavRob60 on Stack Overflow See other posts from Stack Overflow or by DavRob60
Published on 2010-03-17T20:34:57Z Indexed on 2010/03/17 20:41 UTC
Read the original article Hit count: 284

Filed under:
|
|

How to encode a datetime in a QueryString and read it in the asp:QueryStringParameter

out: (it's a asp:HyperLink NavigateUrl )

String.Format("~/Reports/Logs/Option_History.aspx?OptionID={0}&time={1}", id, time)

in:

<asp:QueryStringParameter Name="time" QueryStringField="Time" Type="DateTime" ConvertEmptyStringToNull="true" />

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about vb.net