protected void ItemDropDownList_SelectedIndexChanged(object sender, EventArgs e) { if (ItemDropDownList.SelectedIndex != 0) { int companyId = Convert.ToInt32(companyDropDownList.SelectedValue); string itemName = ItemDropDownList.SelectedItem.ToString(); StockIn stockIn = stockInManager.GetAvailableStock(companyId, itemName); reorderlevelTextBox.Text = stockIn.ReorderLevel.ToString(); availableQuantityTextBox.Text = stockIn.AvailableQuantity.ToString(); } }