Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DataTable dt = bllgo.GetAll();
         Repeater1.DataSource = dt;
         Repeater1.DataBind();
     }
 }
Пример #2
0
        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();
            }
        }