Click here to Skip to main content
13,091,417 members (62,376 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I am using sqldata reader to get values in an web application. My issues is how to get the values of the checkboxes

This is a portion where I am struggling
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 30-Sep-12 16:10pm
Updated 30-Sep-12 18:09pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

can u explain where is checkbox ,i mean inside grid or separate ? pls explain your question .
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170813.1 | Last Updated 1 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100