hi, this is kavita. i want to send data from my html table into sqldatabase(suppose I have 10 record with 5 colums).is it possible.
please help me.
Send data from table to database
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Mahesh ChandRank #1 · 393.4K reputationPosted Dec 18, 2006, 9:48 AM EST
Absolutely.
There are several ways to do it. First, you can use a DataSet and DataAdapter approach to use Update method of the DataAdapter to save changes.
Alternatively, you can loop through your HTML table, collect data in variables, and build a SQL statement "INSERT INTO".. off the variables and execute the statement.
If you are using SP approach, pass variables as parameters.
See ADO.NET section on how to use DataAdapter, SQL statement, or stored procedures.