protected void gvRecJobs_SelectedIndexChanged(object sender, EventArgs e) { GridViewRow row = gvRecJobs.SelectedRow; dt2 = ToDataTable <DbRecommendation>(recPeople.ToList()); DataRow dRow = dt2.Rows[row.RowIndex]; jobId = (int)dRow["JobId"]; pnlSelectJob.Visible = true; DbJob job = service.GetOneJob(jobId); string accountManager = service.GetOneUser(job.UserId); //int rowCount = gvRecJobs.SelectedIndex; //lblStatus.Text = jobId.ToString(); lblStatus.Text = job.Status; lblStream.Text = job.Stream; lblLocation.Text = job.Location; lblCompany.Text = job.Company; lblTitle.Text = job.Title; lblDescription.Text = job.Description; lblDateposted.Text = job.DatePosted.ToString(); lblDeadline.Text = job.Deadline.ToString(); lblAccMan.Text = accountManager; blSkills.DataSource = job.Skills; blSkills.DataBind(); //lblMsg.Visible = false; pnlSelectJob.Visible = true; Session["jobId"] = jobId; lbtnAddComment.Visible = true; BindCommentData(jobId); if (service.ViewComments(jobId).ToList().Count == 0) { lblSuccess.Text = "There are currently no comments for this post"; cmntTimer.Enabled = false; } cmntTimer.Enabled = true; }