Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET VB.NET
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
Edited 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 at 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
0 OriginalGriff 239
1 Sarvesh Kumar Gupta 185
2 George Jonsson 154
3 ArunRajendra 144
4 Richard MacCutchan 140

Advertise | Privacy | Mobile
Web02 | 2.8.140709.1 | Last Updated 1 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid