前台:
<td class="td_page">新闻类型:</td>
<td><asp:DropDownList ID="dropNewType" runat="server"></asp:DropDownList></td>
 
后台:
DataTable dt = CDB.FillTable("select TypeId, TypeContent from [newsTypeTable]");
dropNewType.DataSource = dt;
dropNewType.DataTextField = "typeContent";
dropNewType.DataValueField = "TypeId";
dropNewType.DataBind();