protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DataTable dt = bllsto.GetAll(); Repeater1.DataSource = dt; Repeater1.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //获取所有仓库列表 DataTable storeTable = bllsto.GetAll(); stno.DataSource = storeTable; stno.DataTextField = "stno"; stno.DataValueField = "stno"; stno.DataBind(); DataTable goodsTable = bllinvent.getBystno(stno.SelectedValue.ToString()); gno.DataSource = goodsTable; gno.DataTextField = "gno"; gno.DataValueField = "gno"; gno.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //获取所有仓库列表 DataTable storeTable = bllsto.GetAll(); stno.DataSource = storeTable; stno.DataTextField = "stno"; stno.DataValueField = "stno"; stno.DataBind(); //获取所有商品编号 DataTable goodTable = bllgo.GetAll(); gno.DataSource = goodTable; gno.DataTextField = "gno"; gno.DataValueField = "gno"; gno.DataBind(); } }