Reputation: 861
I have a web page that on page load loads data into drop down lists and the user has the option to change the values if they wish too. How do I make it so everytime they change the value it will save it and resend it to the database? So far all I have is this:
Private Sub cboCure_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cboCure.SelectedIndexChanged
cboCure.SelectedItem.Text = CStr(sender)
...database functions using cboCure.SelectedItem.Text
End Sub
I don't know if this is enough information to help out at all, if it's not just lemme know... I don't really know what else to put in this one.
Upvotes: 0
Views: 27
Reputation: 77876
Set autopostback
property of your combobox to true
. So that, whenever a change happens; you can check if if(ispostback)
and have your code to do the insertion of changed data in DB.
Upvotes: 1