How to insert html table values into database table?
As I am fetching datas from sql server and displaying in html table. And Now I want to insert html table values into database.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
sujay anandPosted Sep 30, 2014, 8:03 AM
Arunava BhattacharjeePosted Sep 30, 2014, 7:56 AM
Arunava BhattacharjeePosted Sep 30, 2014, 7:56 AM
sujay anandPosted Sep 30, 2014, 6:50 AM
Arunava BhattacharjeePosted Sep 30, 2014, 6:45 AM
You need to bind the datasource first for repeater control and then in the ItemTemplate you need to add an edit Link Button for the editing for the primary key or the composite key which uniquely identifies your table:
CommandName="edit">Edit
Then you need your update/delete code in the "edit" command. That's how I would have done it.
http://www.dotnetfunda.com/blogs/atuldhiman/3364/aspnet-using-csharp-repeater-control-editupdatecancel-and-delete
Accept the answer if this is what you need.
sujay anandPosted Sep 30, 2014, 5:56 AM
sujay anandPosted Sep 30, 2014, 5:56 AM
sujay anandPosted Sep 30, 2014, 5:56 AM
sujay anandPosted Sep 30, 2014, 5:56 AM
Arunava BhattacharjeePosted Sep 30, 2014, 5:30 AM