日期:2014-05-18 浏览次数:21230 次
SqlDataReader read1 = SqlHelper.ExecuteReader(common.GetConnStr(), CommandType.Text, "select top 20 * from item ", null);
DropDownList1.DataSource = read1;
DropDownList1.DataTextField = "item_no";
DropDownList1.DataBind();
protected void Button1_Click(object sender, EventArgs e)
{
this.Label1.Text = DropDownList1.SelectedValue.ToString();
}