|
-
Oct 10th, 2005, 06:44 AM
#1
Thread Starter
Fanatic Member
combobox
hi,
I would like to populate a comboBox with three text values and assign an ID to each one so that when one of them is selected, then an ID for that text value is used later on
ie.
combobox1.items.add("value1")
combobox1.items.add("value2")
combobox1.items.add("value3")
tried
accountTypeComboBox.Items.Add (new ListItem("Item 1", "0"))
accountTypeComboBox.Items.Add (new ListItem("Item 2", "1"))
but gives an error on ListItem
Thanks
Last edited by fmardani; Oct 10th, 2005 at 06:54 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|