protected void Page_Load(object sender, EventArgs e) { initialPageAccess(); CheckErrors check = new CheckErrors(); try { if (!check.checkProjectAccess(projectId, loginId)) { goBack(); } } catch (Exception ex) { Console.WriteLine("Error: " + ex); goBack(); } printInfo(); }
protected void Page_Load(object sender, EventArgs e) { initialAccess(); CheckErrors check = new CheckErrors(); try { projectId = Request.QueryString["projectId"]; if (!check.checkProjectAccess(projectId, loginId)) { goBack(); } } catch (Exception ex) { Console.WriteLine("Error: " + ex); goBack(); } //Check if the user editing is the master of this project or an admin: if (!isAccessAllowed()) { goBack(); } if (!IsPostBack) { files = new List <HttpPostedFile>(); //calStartDate.SelectedDate = DateTime.Today; fileNames.InnerHtml = " "; try { fillInputs(); } catch (Exception ex) { Console.WriteLine("Error: " + ex); } } }