private void GetData() { objWorkFlow = new WorkFlow(); objWorkFlow.WFID = Convert.ToInt32(Request.QueryString["WFID"]); DataTable dt = objWorkFlow.GetWFById(); DataTable dtGetNotes = objWorkFlow.GetHistory(); if (dt.Rows.Count > 0) { txtProject.Text = dt.Rows[0]["Project"].ToString(); txtElement.Text = dt.Rows[0]["Element"].ToString(); txtSpecification.Text = dt.Rows[0]["SpecificationNo"].ToString(); txtPMDLDoc.Text = dt.Rows[0]["PMDLDocNo"].ToString(); txtBuyer.Text = dt.Rows[0]["BuyerName"].ToString() + "-" + dt.Rows[0]["Buyer"].ToString(); txtManager.Text = dt.Rows[0]["ManagerName"].ToString() + "-" + dt.Rows[0]["Manager"].ToString(); txtStatus.Text = dt.Rows[0]["WF_Status"].ToString(); txtCreater.Text = dt.Rows[0]["EmployeeName"].ToString(); txtDAte.Text = Convert.ToDateTime(dt.Rows[0]["DateTime"].ToString()).ToString("dd-MM-yyyy"); hdfUser.Value = dt.Rows[0]["UserId"].ToString(); hdfWFID.Value = (dt.Rows[0]["Parent_WFID"]).ToString(); } if (dtGetNotes.Rows.Count > 0) { txtNotes.Text = dtGetNotes.Rows[0]["Notes"].ToString(); } }