protected void cboStockTypes_SelectedIndexChanged(object sender, System.EventArgs e) { Data.StockTypes clsStockTypes = new Data.StockTypes(); Data.StockTypesDetails clsDetails = clsStockTypes.Details(Convert.ToInt16(cboStockTypes.SelectedItem.Value)); clsStockTypes.CommitAndDispose(); txtStockTypeDescription.Text = clsDetails.Description; txtStockDirection.Text = clsDetails.StockDirection.ToString("G"); }