2006-11-08
Asp.Net2.0 DataSet
Dim cn As New SqlConnection("Server=localhost;Database=Northwind;UID=sa;PWD=;")
Dim da As New SqlDataAdapter("select EmployeeID,LastName,FirstName,Title from employees", cn)
Dim ds As New DataSet
da.Fill(ds, "employees")
GridView1.DataSource = ds.Tables("employees")
GridView1.DataBind()
Dim da As New SqlDataAdapter("select EmployeeID,LastName,FirstName,Title from employees", cn)
Dim ds As New DataSet
da.Fill(ds, "employees")
GridView1.DataSource = ds.Tables("employees")
GridView1.DataBind()