Phuc Hoang

Phuc Hoang

  • NA
  • 4
  • 0

Read XML using datatable

Dec 1 2010 4:31 AM
Hello all
How can i return database that using  SELECT
Here is  my code
Public Function Recommened_GetUser(ByVal UserID As Integer, ByVal Path As String) As Data.DataTable
                Dim table As New Data.DataTable("Recommendhotel")
                table.ReadXml(Path & filename)
                Dim drs As DataRow()
                drs = table.Select("UserID='" & UserID & "'")
                Return table
 End Function
I want to select that only show depend on condition (UserID)

I really appreciate all the help you can give me!
Thanks in advance

Answers (2)