Hi, I have an app with a popup containing a listbox. I want to dynamically add a few items to the listbox and found code in a number of places which does something like:<br><br> listbox.Items.Add(ListItem("Special", 11))<br>
listbox.Items.Add(ListItem("Regular", 19))<br><br>However, I can't find the proper import so that it finds ListItem. On MSDN it shows as being in<br><br>from System.Web.UI.WebControls import ListItem<br>
<br>but I get "can't import UI"<br><br>So, anyone know how to do this?<br><br>Also, I'm concerned that next time (if I ever get it working first time) I come to this popup, it will contain the items I had added previously; how does one go about clearing the whole listbox?<br>
Thanks,<br>Ken<br><br>