AJAX.NET Pro and Date Types...

This...
<AjaxPro.AjaxMethod()> _
Public Function GetTheDate(ByVal TheDate as DateTimeas String
    Return 
TheDate.ToShortDateString
End Function

Does not work.

But, this...

<AjaxPro.AjaxMethod()> _
Public Function GetTheDate(ByVal TheDate as Stringas String
    Return cDate
(TheDate).toShortDateString
End Function

Does.  Apparently, any type conversions involving dates need to be done inside the function, rather than passed through the function.

Print | posted on Monday, November 28, 2005 3:15 PM

Feedback

No comments posted yet.
Title  
Name
Email (never displayed)
Url
Comments   
Please add 7 and 8 and type the answer here: