protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DataTable storeTable = storeBLL.GetAllStore(); stno.DataTextField = "stno"; stno.DataValueField = "stno"; stno.DataSource = storeTable; stno.DataBind(); if (Request.QueryString.Count > 0) { string strmno = Request.QueryString["mno"].ToString(); manager m = managerBLL.GetSingleByno(strmno); if (m != null) { mno.Value = strmno; mname.Value = m.mname; sex.Value = m.sex; birthday.Value = m.birthday.ToString("yyyy-MM-dd"); stno.SelectedValue = m.stno; } } else { Response.Redirect("ManagerList.aspx"); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DataTable storeTable = storeBLL.GetAllStore(); Repeater1.DataSource = storeTable; Repeater1.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DataTable storeTable = storeBLL.GetAllStore(); stno.DataSource = storeTable; stno.DataTextField = stno.DataValueField = "stno"; stno.DataBind(); stno_OnSelectedIndexChanged(sender, e); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //获取所有仓库列表 DataTable storeTable = storeBLL.GetAllStore(); stno.DataSource = storeTable; stno.DataTextField = "stno"; stno.DataValueField = "stno"; stno.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DataTable goodsTable = goodBLL.GetAllGood(); DataTable storebTable = storeBLL.GetAllStore(); gno.DataSource = goodsTable; gno.DataTextField = "gname"; gno.DataValueField = "gno"; gno.DataBind(); stno.DataSource = storebTable; stno.DataTextField = stno.DataValueField = "stno"; stno.DataBind(); } }