private void GetRequestStatus() { cmdRequestApproval.Enabled = false; tRequestBy.Text = "Not Requested"; tRequestDate.Text = ""; try { using (DataStuff sn = new DataStuff()) { DataTable dt = sn.ProjectGetRequestStatus(ServerName, ProjectName); if (dt.Rows.Count > 0) { tRequestBy.Text = dt.Rows[0]["UserName"].ToString(); tRequestDate.Text = dt.Rows[0]["RequestDate"].ToString(); } else { cmdRequestApproval.Enabled = true; } } } catch { } }