You will need the following:
<asp:DropDownList id="ddl_Items" runat="Server" DataTextField="percentage"
DataValueField="id" DataSourceId="sds_Items" />
<asp:SqlDataSource id="sds_Items" ...........other stuff........ />
You do not need to worry about assigning a value to a click. Just do it when you load DropDownList first.
source
share