date filed error from data table return using flypostback

3 replies. Last post: July 27, 2010 9:35 AM by Handy Surya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
caMember

hi,

 

i have gone through the DataTable return from webservice using flypostback manager.

I have found one error in this example. if the data field contains date coulumn, the returning value have incorrect month. Can you please check the case with the following given code which used to create a datatable and return from webservice . (in WebServiceSample .cs file of flypostback example)

 

Dim dtCust As New DataTable("Customer")
        dtCust.Columns.Add("CustomerID", GetType(Date))
        dtCust.Columns.Add("FirstName", GetType(String))
        dtCust.Columns.Add("LastName", GetType(String))

        'Dim d As Date = New Date()


        dtCust.Rows.Add(New Object() {Date.Now(), "Maria", "Anders"})
        dtCust.Rows.Add(New Object() {Date.Now(), "Ana", "Trujilo"})
        dtCust.AcceptChanges()

        Return dtCust

is there any solution for this??

thanks and regards

ca

All times are GMT -5. The time now is 3:40 PM.
Previous Next