<p>how do i insert items into an html listbox from a database?
im using asp c#. i cant make the listbox run at server because the application wont work if i do that. so i have to insert values from a database into an html listbox. I just need to display 1 column of data. cheers..</p>

There are two ways of doing this I can think of:
First, you can place an
```
<asp:Placeholder />
```
tag on the page and generate the listbox in code:
```
```
var select = new HtmlSelect() { Size = 5 };

//assuming the data has been placed in an IEnumarble
foreach (var item in items)
{
    select.Items.Add(new ListItem() { Value = item });
}
selectPlaceholder.Controls.Add(select);
```
```
Second, you could create a WebService or ashx handler to provide the data and populate the list from javascript.