I have a datagrid with a button in a column. Looks like this:
ID | text | bit value | button
When the button is clicked, I'd like to change the bit value for that record. I'm having a lot of trouble passing the number in the ID column to the event the button calls in the OnClick. I tried calling the UpdateDB(byval ID) function using onclick="UpdateDB(ID)" but it returns an error.
Any ideas on how I can do this?
ID | text | bit value | button
When the button is clicked, I'd like to change the bit value for that record. I'm having a lot of trouble passing the number in the ID column to the event the button calls in the OnClick. I tried calling the UpdateDB(byval ID) function using onclick="UpdateDB(ID)" but it returns an error.
Any ideas on how I can do this?