private void SetComments() { if (this.ddlReject.SelectedValue != string.Empty) { int RejectReasonId = int.Parse(this.ddlReject.SelectedValue); MasterDataBLL bll = new MasterDataBLL(); ERS.RejectReasonDataTable rejectReasonDT = bll.GetRejectReasonById(RejectReasonId); if (rejectReasonDT != null && rejectReasonDT.Rows.Count > 0) { ERS.RejectReasonRow rejectReasonDr = rejectReasonDT[0]; txtComments.Text = rejectReasonDr.RejectReasonContent; } else { txtComments.Text = string.Empty; } } }