Update the database asynchronously
I have a ListView in ASP.NET where one column consists checkBoxes. I want the user to be able to these CheckBoxes directly in the list (without having to go into edit mode). How I do that, I have received answers in this question
The problem is when the user quickly press several CheckBoxes. It is only the first checkBox that is stored in the database, the other is restored. The user must for ever开发者_如何学Pythony checkBox, wait for the page updated. Is it posible to solve so that the changes are written to the database asynchronously?
You should make Ajax request using JavaScript on checkbox state change
You can use UpdatePanel
to write to the database asynchronously and set Trigger
to CheckedChanged
event
精彩评论