Login or Sign Up to become a member!

EXPERTS, INFORMATION, IDEAS & KNOWLEDGE

Social bookmarker Add this

ASP.NET: Extract data from a SQLDataSource to a DataTable

From Wiki

Jump to: navigation, search


Summary: An example of how data can be extracted from a SQLDataSource and written to a DataTable

  1. Dim dv As New System.Data.DataView  
  2. Dim dt As New System.Data.DataTable  
  3. dv = mySQLDataSource.Select(DataSourceSelectArguments.Empty)  
  4. dt = dv.ToTable()


This Hack is part of the ASP.NET Hacks collection

447 Rating: 3.0/5 (2 votes cast)