protected void GridActionWaitingList(object sender, GridViewCommandEventArgs e) { int tripId = Convert.ToInt32(Request.QueryString["tripId"]); GridViewRow row = GridViewRegistered.SelectedRow; string RegisterID = e.CommandArgument.ToString(); int staffId = Convert.ToInt32(Session["StaffId"]); if (e.CommandName == "Shortlist") { TripDAO TripDAO = new TripDAO(); Trip TripList = new Trip(); int TRIPPYLIST; TRIPPYLIST = TripDAO.updateShortlisted(RegisterID, tripId); InterviewDAO intDao = new InterviewDAO(); string adminNo = intDao.exchangeRegIdForAdminNo(RegisterID); int updateStuds = intDao.selectForInterview(adminNo, staffId, tripId); Response.Redirect(Request.RawUrl); } else if (e.CommandName == "Move to pending") { TripDAO TripDAO = new TripDAO(); Trip TripList = new Trip(); int TRIPPYLIST; TRIPPYLIST = TripDAO.updateRegistered(RegisterID, tripId); Response.Redirect(Request.RawUrl); } }