How can I bind this items to database?

bluebabubear

New Member
This is my combobox that bind to database. \[code\]<asp:DropDownList ID="ddlUnitType" runat="server" CssClass="fonttah" DataSourceID="SqlDataSource1" DataTextField="UnitTypeName" DataValueField="UnitTypeID"> </asp:DropDownList> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SellAutomationConnectionString %>" SelectCommand="SELECT [UnitTypeID], [UnitTypeName] FROM [UnitTypes]"> </asp:SqlDataSource>\[/code\]Now I replacing it with \[code\] <table> <tr> <td width="208"> <div id="languages"> <ul> <li> &nbsp;<img src="http://stackoverflow.com/App_Themes/DefaultTheme/images/Select.png" alt="SelectItems" border="0" align="absmiddle"/> &nbsp;<span style=" font-weight:bold">... ?????? ????</span> </li> <li> &nbsp;<img src="http://stackoverflow.com/App_Themes/DefaultTheme/images/home.png" alt="Home" align="absmiddle" border="0"/> &nbsp;<span style="text-align:left">??????? ?????? ????? ?????</span> </li> <li> &nbsp;<img src="http://stackoverflow.com/App_Themes/DefaultTheme/images/shopping.png" alt="shopping" align="absmiddle" border="0"/> &nbsp;<span>??????? ?????</span> </li> </ul> </div> </td> </tr> </table>\[/code\]And now I want to read data from database.In fact using this code instead of that combo box. How can I bind it to database?
Thanks.
 
Back
Top