Click here to Skip to main content
15,884,879 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using sqldata reader to get values in an asp.net web application. My issues is how to get the values of the checkboxes

This is a portion where I am struggling
VB
cmd = New SqlCommand("SELECT EmployeeEmpID,EmpLName,FirstFName,LaborType",  conn)
           lrd = cmd.ExecuteReader()

           While lrd.Read()
               empId.Text = lrd.GetValue(0).ToString()
               empLname.Text = lrd.GetValue(1).ToString()
               empFname.Text = lrd.GetValue(2).ToString()
               empLabor.Check =  lrd.GetByte(3).ToString()----->This is a checkbox 
and I am not sure how to get the value. Any help will be appreciated
Posted
Updated 30-Sep-12 18:09pm
v5

1 solution

can u explain where is checkbox ,i mean inside grid or separate ? pls explain your question .
 
Share this answer
 
Comments
Member 1283347 1-Oct-12 8:17am    
checkbox is separate

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900