Hi i am doing app in asp.net
I want to display desc,id in dropdownlist box here id is hidden
when refer the dropdownlist value i want capture the id.
I am doing like this
<asp:DropDownList id = "list1" DataSource="<%# BindTheRepHead() %>" OnPreRender="SetDropDownIndex" DataTextField="desc" DataValueField="id" Runat =server />
but listbox showing null.Is there any other way to do .
How to bind the sql query to listbox.