protected void GoodsComboBox_OnSelectedIndexChanged(object sender, EventArgs e) { var goodsID = Convert.ToInt32(GoodsComboBox.Value); var pseudoUnits = new PseudoUnit().ListPseudoUnitsByGoodsID(goodsID); PseudoUnitComboBox.ClientEnabled = true; PseudoUnitComboBox.SelectedIndex = -1; PseudoUnitComboBox.DataSource = pseudoUnits; PseudoUnitComboBox.DataBind(); QuantityNote.Text = string.Empty; QuantityNote.Visible = false; }
protected void GoodsComboBox_SelectedIndexChanged(object sender, EventArgs e) { PseudoUnitComboBox.SelectedIndex = -1; PseudoUnitComboBox.DataSource = new PseudoUnit().ListPseudoUnitsByGoodsID(Convert.ToInt32(GoodsComboBox.Value)); PseudoUnitComboBox.DataBind(); }