Sunday, January 17, 2016

I want to use list controls to bind data sources, display data in the table




            


// Create and open a SqlConnection
isc_connect = new SqlConnection (is_connectString);

// SqlCommand for a Transact-SQL statements or SQL Server databases stored procedure
isc_command = new SqlCommand ("select * from SEX_DICT", isc_connect);

// SqlDataAdapter Represents a set of data commands and a database used to fill the DataSet and update a SQL Server database connection
SqlDataAdapter lda_adapter = new SqlDataAdapter (isc_command);

// DataSet represents data cache in memory
DataSet lds_data = new DataSet ();

// Adds or refreshes rows to match using the DataSet and DataTable names in the data source row in the DataSet
lda_adapter.Fill (lds_data, "SEX_DICT");

List1.DataBind ();
Reply:
Access points
Reply:
Bangding
Reply:
Support Louzhu collections
Reply:
This simple ah, a Web search to get the answer.

No comments:

Post a Comment