Datagrid checkbox value update issue

I

irene

Hi, All,

I am trying to bulid a web application for user's to approve certain
information. On the web page, it shows a datagrid containing the
detail information from the database(SQL database). Checkbox values
are coming out from the database "approved"(bit datatype) column. I
can read the data from the database either by dataset or datareader
and the data is showing correctly on the web page. After user click
the checkbox value, I want to update the database based on that value.
How can I pass the checkbox value so that I will know which record
need to update then? The updatequery will be something like"Update
Table1 set Approved = 1, ApprovedBy = '" & User & "', ApprovedDate =
'" & today & "' where UserID = XXX"

Thanks.

Irene
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,772
Messages
2,569,591
Members
45,103
Latest member
VinaykumarnNevatia
Top