/// <summary>Page's load event</summary> /// <param name="sender">Loaded page</param> /// <param name="e">Event's arguments</param> protected void Page_Load(object sender, EventArgs e) { if (this.Session["User"] == null || this.Session["UniqueSessionId"] == null) { this.Response.Redirect("Default.aspx", Constant.EndResponse); } else { int test = 0; this.user = this.Session["User"] as ApplicationUser; var token = new Guid(this.Session["UniqueSessionId"].ToString()); if (!UniqueSession.Exists(token, this.user.Id)) { this.Response.Redirect("MultipleSession.aspx", Constant.EndResponse); } else if (this.Request.QueryString["id"] == null) { this.Response.Redirect("NoAccesible.aspx", Constant.EndResponse); } else if (!int.TryParse(this.Request.QueryString["id"], out test)) { this.Response.Redirect("NoAccesible.aspx", Constant.EndResponse); } else { this.Go(); } Context.ApplicationInstance.CompleteRequest(); } }
/// <summary>Page's load event</summary> /// <param name="sender">Loaded page</param> /// <param name="e">Event's arguments</param> protected void Page_Load(object sender, EventArgs e) { if (this.Session["User"] == null || this.Session["UniqueSessionId"] == null) { this.Response.Redirect("Default.aspx", Constant.EndResponse); Context.ApplicationInstance.CompleteRequest(); } else { this.ApplicationUser = this.Session["User"] as ApplicationUser; var token = new Guid(this.Session["UniqueSessionId"].ToString()); if (!UniqueSession.Exists(token, this.ApplicationUser.Id)) { this.Response.Redirect("MultipleSession.aspx", Constant.EndResponse); Context.ApplicationInstance.CompleteRequest(); } else { this.Go(); } } }
/// <summary>Page's load event</summary> /// <param name="sender">Loaded page</param> /// <param name="e">Event's arguments</param> protected void Page_Load(object sender, EventArgs e) { this.active = true; this.Incident = Incident.Empty; this.BusinessRisk = BusinessRisk.Empty; this.Objetivo = Objetivo.Empty; this.Oportunity = Oportunity.Empty; this.Auditory = Auditory.Empty; if (this.Session["User"] == null || this.Session["UniqueSessionId"] == null) { this.Response.Redirect("Default.aspx", Constant.EndResponse); } else { int test = 0; this.ApplicationUser = this.Session["User"] as ApplicationUser; var token = new Guid(this.Session["UniqueSessionId"].ToString()); if (!UniqueSession.Exists(token, this.ApplicationUser.Id)) { this.Response.Redirect("MultipleSession.aspx", Constant.EndResponse); } else if (this.Request.QueryString["id"] == null) { this.Response.Redirect("NoAccesible.aspx", Constant.EndResponse); } else if (!int.TryParse(this.Request.QueryString["id"], out test)) { this.Response.Redirect("NoAccesible.aspx", Constant.EndResponse); } else { this.Go(); } } Context.ApplicationInstance.CompleteRequest(); }