示例#1
0
        protected void DropdownCompanySelectedIndexChanged(object sender, EventArgs e)
        {
            StockInManager item      = new StockInManager();
            int            companyid = Convert.ToInt32(DropDownCompanyList.SelectedItem.Value);

            DropDownItemList.DataSource     = item.GetAllitem(companyid);
            DropDownItemList.DataTextField  = "ItemName";
            DropDownItemList.DataValueField = "ItemId";
            DropDownItemList.DataBind();
            DropDownItemList.Items.Insert(0, new ListItem("Select", "0"));
        }