Hi to all. I'm new in using ASP.NET, though I'm using VB.NET in my programming. I am having trouble in rebinding listview in the webpage. Unlike in the Visual Basic, I can easily rebind the listview, but in here, the codes I used there is not right. For instance, here is the code of rebinding my listview in VB.NET
Public Sub ShowData()
Dim dt As New DataTable
Dim ds As New DataSet
ds.Tables.Add(dt)
Dim da As New OleDbDataAdapter("Select * from tblRoom ORDER BY RoomNo ASC", con)
da.Fill(dt)
Dim myRow As DataRow
For Each myRow In dt.Rows
ListView1.Items.Add(myRow.Item(0))
ListView1.Items(ListView1.Items.Count - 1).SubItems.Add(myRow.Item(1))
ListView1.Items(ListView1.Items.Count - 1).SubItems.Add(myRow.Item(2))
Next
End Sub
When I try to apply it here in ASP.NET, the Listview1.Items.Add is not functioning, ...
Go to the complete details ...