Checkboxlist

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Sandy (Sandy_at_discussions.microsoft.com)
Date: 02/09/05


Date: Wed, 9 Feb 2005 14:27:05 -0800

I have a checkboxlist that is populated from a small table consisting of 9
rows numbered 1 through 9 and a description for each in the second col. The
description is what appears on the interface.

I am trying to get the value of Col1 for each of the items checked (i.e., 1,
2, 3, 4, etc) instead of the description.

I have the following code that returns the description:

--
Dim li as ListItem
For Each li in cblTable.Items
  If li.Selected Then
       Response.Write(li.Text & " is selected.<br>")
  End If
--
How do I get the code to look up the description's item number?
Sandy
-- 
Sandy