protected void Page_Load(object sender, EventArgs e) { if (SessionManager.GetCurrentUser().EmployeeType != Entities.EmplpyeeType.INTERPRETER) { Response.Redirect("Default.aspx"); } string v = Request.QueryString["room"]; if (v != null) { hdnRoomId.Value = v; } hdnSource.Value = SessionManager.GetCurrentUser().EmployeId.ToString(); if (!IsPostBack) { List <shift> myShifts = ShiftController.getShiftByUserName(SessionManager.GetCurrentUser().EmployeId); gvmyShifts.DataSource = myShifts; gvmyShifts.DataBind(); } }