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
==============================================
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
==============================================