1.dropdownlist的绑定
BLLAuction bll_getAuction=new BLLAuction(); this.ddlauctioncode.DataSource = bll_getAuction.GetAuctionList(); this.ddlauctioncode.DataTextField = "Name"; this.ddlauctioncode.DataValueField = "code"; this.ddlauctioncode.DataBind(); this.ddlauctioncode.Items.Insert(0, new ListItem("请选择拍卖场次", ""));
2.后台执行js
this.ClientScript.RegisterStartupScript(this.GetType(), this.Title, "alert('信息设置成功!');", true);