I wrote this code:
<select id="selectCategories" runat="server">
<option value="-1">Categories</option>
<asp:ListView ID="lvCategories" runat="server">
<ItemTemplate>
<option value="<%# Eval("ID") %>"><%# Eval("NAME") %></option>
</ItemTemplate>
</asp:ListView>
</select>
and the browser gave me: 'HtmlSelect' cannot have children of type 'ListView'.
I dont want to insert the select into the listview or remove the runat from the select. What can I do?