protected void Page_Load(object sender, EventArgs e) { //Get the exception from the session variable passed by the page where the error occured Exception ex = (Exception)Session["Exception"]; //Calls the ExceptionMsgBox method that breakes the exception in pieces and building with them //a message error which is then passed to the label this.LblError.Text = error.ExceptionMsgBox(ex, null); }