Question : ASP.NET Show All Button not executing the Query

I have the following code to select when the ShowallButton is Clicked. I want to Execute the Command and display the results in a ListView Control . Am i doing anyhting wrong. I dont get error but shows no results...
1:
2:
3:
4:
5:
6:
7:
8:
9:
Protected Sub showallButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles showallButton.Click

        ' Dim sql As String = "SELECT * FROM tbl_Providers"
        Dim sql As String = "SELECT [First Name] AS First_Name, [Last Name] AS Last_Name, [Specialty], [Specialty 2],[Address], [Address2], [City], [State], [Zip], [Phone], [Fax] FROM [tbl_Providers] ORDER BY [First Name] Asc "
        AccessDataSource2.SelectCommand = sql
        ListView1.DataBind()
        ListView1.Visible = True

    End Sub

Answer : ASP.NET Show All Button not executing the Query

UPDATE yourtable
   SET your_date_field = DateAdd(dd, DateDiff(dd, STARTTIME, your_date_field ), STARTTIME)
WHERE ...
Random Solutions  
 
programming4us programming4us