protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { var pendingApps = _supervisorRepository.PendingApps(); foreach (var each in pendingApps) { showTable(pnlVideos, each); } var mdeApps = _supervisorRepository.AssignToMDEApps(int.Parse(HttpContext.Current.Session["UserAuthId"].ToString())); foreach (var each in mdeApps) { showTable(pnlMyContApps, each); } } }