protected void Button1_Click(object sender, EventArgs e) { string name = this.TextBox1.Text; string type = this.DropDownList1.SelectedItem.Text; this.Repeater1.DataSource = BorrowManger.select(name, type); this.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { this.DropDownList1.Items.Insert(0, "---请选择---"); } this.Repeater1.DataSource = BorrowManger.select(); this.DataBind(); }