日期:2014-05-20 浏览次数:20910 次
<td align="left" style="width: 340px">
<asp:DropDownList ID="ddlSellerType" runat="server">
</asp:DropDownList>
</td>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
List<SellerType> sellertype = isellerService.GetSellersType();
ddlSellerType.DataSource = sellertype;
ddlSellerType.DataTextField = "Name";
ddlSellerType.DataValueField = "SellerTypeID";
ddlSellerType.DataBind();
}
}