/Docs/07-Implementacion/Source/trunk/EDUAR_Regular/EDUAR/EDUAR_UI/Error.aspx.cs
http://blpm.googlecode.com/ · C# · 39 lines · 32 code · 2 blank · 5 comment · 3 complexity · ddcec90a2fe2c5a25b7a086d07351e13 MD5 · raw file
- using System;
- using System.Web;
- using System.Web.UI;
-
- namespace EDUAR_UI
- {
- public partial class Error : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- if (Application["CurrentError"] != null && HttpContext.Current.IsDebuggingEnabled)
- {
- divDetalle.Visible = true;
- lblError.Text = (string)Application["CurrentError"];
- lblDetalle.Text = (string)Application["CurrentErrorDetalle"];
- Application["CurrentError"] = null;
- Application["CurrentErrorDetalle"] = null;
- }
- else
- divDetalle.Visible = false;
- }
-
- /// <summary>
- /// Handles the Click event of the btnVolver control.
- /// </summary>
- /// <param name="sender">The source of the event.</param>
- /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
- protected void btnVolver_Click(object sender, EventArgs e)
- {
- try
- {
- Response.Redirect("~/Default.aspx",false);
- }
- catch (Exception)
- {
- }
- }
- }
- }