Checkboxlist
From: Sandy (Sandy_at_discussions.microsoft.com)
Date: 02/09/05
- Next message: Steve C. Orr [MVP, MCSD]: "Re: problems reading network file from ASP .NET"
- Previous message: venky: "opening a page in new window"
- Next in thread: Tu-Thach: "RE: Checkboxlist"
- Reply: Tu-Thach: "RE: Checkboxlist"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Steve C. Orr [MVP, MCSD]: "Re: problems reading network file from ASP .NET"
- Previous message: venky: "opening a page in new window"
- Next in thread: Tu-Thach: "RE: Checkboxlist"
- Reply: Tu-Thach: "RE: Checkboxlist"
- Messages sorted by: [ date ] [ thread ]