/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

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