Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Event handling prt2
Message
From
01/10/2003 21:21:41
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Event handling prt2
Miscellaneous
Thread ID:
00834056
Message ID:
00834056
Views:
56
See the classes in the SqlClient namespace for examples of how to execute an sql statement. There is no difference between executing sql commands inside of an event handler or inside a method of the page class.

The results of your sql statement will normally return a rowset (similar to an ADO recordset). The database name will already be specified in your connection string, or in the sql statement that you are executing. For field names, you can use an SqlDataAdapter to retrieve the rowset as a DataTable or a DataSet that contains DataTables. The DataTable will contain a DataColumn for each field in the rowset that can be accessed by column name or index position. To dynamically determine the names of the columns, use a For..Next statement to examine the ColumnName property of the DataTable.Columns collection.
Reply
Map
View

Click here to load this message in the networking platform