private void LoadRecord() { Int16 iID = Convert.ToInt16(Common.Decrypt(Request.QueryString["id"], Session.SessionID)); StockTypes clsStockType = new StockTypes(); StockTypesDetails clsDetails = clsStockType.Details(iID); clsStockType.CommitAndDispose(); lblStockTypeID.Text = clsDetails.StockTypeID.ToString(); txtStockTypeCode.Text = clsDetails.StockTypeCode; txtDescription.Text = clsDetails.Description; cboDirection.SelectedIndex = cboDirection.Items.IndexOf(cboDirection.Items.FindByValue(clsDetails.StockDirection.ToString("d"))); }