CheckBoxList Selected Items

  • Thread starter Michael De Lorenzo
  • Start date
M

Michael De Lorenzo

I'm having trouble determining if items in a checkbox list have been
selected or not.

The page has two controls that AUTOPOSTBACK as textbox (to auto-fill two
other textboxes) and a DropDownList to populate the CheckBoxList. The
CheckBoxList is databound with all the correct values.

However, I am unable to determine which listitems have been selected.
Only the ELSE portion of the IF THEN statement is ever executed as a
result of this problem.

Any help would be greatly appreciated.

Thanks,

Michael De Lorenzo
(e-mail address removed)

The code is as follows:

=============================================
while x<=chklistdocs.items.count-1
if chklistdocs.Items(x).Selected then
proceed=true
x = chklistdocs.items.count + 1
lblerror.visible=false
else
lblerror.visible=true
end if
x=x+1
end while
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top