Click here to Skip to main content
12,508,185 members (38,091 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB ASP.NET VB.NET
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
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
JF201554.9K
v5

1 solution

Rate this: bad
 
good
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 .
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160927.1 | Last Updated 1 Oct 2012
Copyright © CodeProject, 1999-2016
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