protected void loadInterviews() { Employee_pros pros = new Employee_pros(); List <List <string> > det = pros.getInterviewDetails(Session["user"].ToString().TrimEnd()); int pid = 0; for (int i = 0; i < det.Count; i++) { if (i > 4) { return; } for (int j = 0; j < 4; j++) { if (j == 1) { Table1.Rows[i + 1].Cells[j].Text = pros.getPositionName(Int32.Parse(det[i][j])); if (i == 0) { pid = Int32.Parse(det[i][j]); } } else { Table1.Rows[i + 1].Cells[j].Text = det[i][j]; } } } Label5.Text = Table1.Rows[1].Cells[0].Text; Label6.Text = Table1.Rows[1].Cells[1].Text; intid = pros.getInterviewId(Session["user"].ToString().TrimEnd(), Label5.Text, pid); Session["intid"] = intid; }
protected void ImageButton3_Click(object sender, ImageClickEventArgs e) { int row = Table1.Rows.Count; bool flag = false; string emp = "", pos = ""; for (int i = 1; i < row; i++) { RadioButton check = new RadioButton(); check = (RadioButton)Table1.Rows[i].Cells[8].Controls[0]; if (check.Checked) { emp = Table1.Rows[i].Cells[1].Text; pos = Table1.Rows[i].Cells[2].Text; flag = true; continue; } } if (!flag) { Label5.Visible = true; return; } Employee_pros pros = new Employee_pros(); int poId = pros.gerPositionId(emp, pos); int intId = pros.getInterviewId(emp, Session["user"].ToString().TrimEnd(), poId); Session["intId"] = intId.ToString(); Response.Redirect("InterviewDetails.aspx"); }