Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: user management code help


Message #1 by "Hovik Melkomian" <melvik@b...> on Sat, 1 Mar 2003 20:01:50 +0330
Hovik, if I understand your request the following code outlines how to
determine the selected values of a Checkboxlist:

Dim itm as ListItem
For Each itm In YourCheckBoxList.Items
  If itm.Selected = True Then
    SelectedItemName = itm.Text
    SelectedItemValue = itm.Value
  End If
Next

Of course, you'll want to use an array or collection type, or concatenate
strings, rather than use simple variables SelectedItemName and
SelectedItemValue as in the example.

HTH

-----Original Message-----
From: Hovik Melkomian [mailto:melvik@b...] 
Sent: Saturday, March 01, 2003 11:32 AM
To: ASPX_Professional
Subject: [aspx_professional] user management code help


I have a user management page with content from 3 Table.
1- Users
2- Access
3- UserAcc

Well, I use RadioButtonList for user's list & CheckBoxList for Access. But
as u know I have to check the checked vales of CheckBoxList for any user &
set it!

How should I do it?! I know all DB stuff so please help me in programming
part. I'll be appreciated to hear any suggestion from u ASAP.

Thanks in advance,
Hovik.







  Return to Index