Listbox name value pair

I'd like to assign a value with text in a listbox.


Similar to:

ListItem Item = new ListItem();

// Text and Value are swapped.

Item.Text = ListBox1.SelectedItem.Value;

Item.Value = ListBox1.SelectedItem.Text;

ListBox2.Items.Add(Item);

But I don't think this works in CF. Anyone got any ideas on how I can do this

Thanks!




Answer this question

Listbox name value pair