PageRenderTime 29ms CodeModel.GetById 26ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1using System;
 2using System.Web;
 3using System.Web.UI;
 4
 5namespace EDUAR_UI
 6{
 7	public partial class Error : System.Web.UI.Page
 8	{
 9		protected void Page_Load(object sender, EventArgs e)
10		{
11			if (Application["CurrentError"] != null && HttpContext.Current.IsDebuggingEnabled)
12			{
13				divDetalle.Visible = true;
14				lblError.Text = (string)Application["CurrentError"];
15				lblDetalle.Text = (string)Application["CurrentErrorDetalle"];
16				Application["CurrentError"] = null;
17				Application["CurrentErrorDetalle"] = null;
18			}
19			else
20				divDetalle.Visible = false;
21		}
22
23		/// <summary>
24		/// Handles the Click event of the btnVolver control.
25		/// </summary>
26		/// <param name="sender">The source of the event.</param>
27		/// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
28		protected void btnVolver_Click(object sender, EventArgs e)
29		{
30			try
31			{
32				Response.Redirect("~/Default.aspx",false);
33			}
34			catch (Exception)
35			{
36			}
37		}
38	}
39}