In a ASP .NET 3.5 ListView InsertItemTemplate I would like to change a textbox:
<asp:TextBox ID="txt" runat="server" Text='<%# Bind("plant") %>' />
to a ListBox:
<asp:ListBox ID="list" runat="server" DataValueField='<%# Bind("plant") %>' >
How do I bind the field 'plant' to the listbox?
UPDATE 1
Here is a sample of using a combobox with the SelectedValue property:
<cc1:ComboBox ID="ComboBox1" AutoPostBack="false"
DropDownStyle="DropDownList" AutoCompleteMode="Suggest"
CaseSensitive="false" CssClass="AjaxToolkitStyle"
ItemInsertLocation="Append"
SelectedValue='<%# Bind("car") %>' runat="server">
<asp:ListItem>Porsche</asp:ListItem>
<asp:ListItem>VW</asp:ListItem>
<asp:ListItem>BMW</asp:ListItem>
<asp:ListItem>UNK</asp:ListItem>
</cc1:ComboBox>