Last post May 07, 2016 07:18 AM by Zhi Lv - MSFT
May 06, 2016 03:45 PM|mmmtbig|LINK
I want to be able to have a Close button on my web form that will update a record that has been edited or insert a new record in the Listview control on the form.
Thanks in advance.
May 07, 2016 07:18 AM|Zhi Lv - MSFT|LINK
From your description, if you want to insert new record, in the button click event, you can get the new values and insert them into database, then rebind the ListView.
If you want to update the record, in the button click event, you need to get the primary key (updated item) and the updated values, then, update the Database, finally rebind the ListView.
You can refer to this article: