using System; using System.Web; namespace AspNetResources.CustomErrors1 { /// /// Summary description for _Default. /// public class _Default : PageBase { private void Page_Load (object sender, System.EventArgs e) { // ------------------------------------------------------ // No one is sane mind would throw an exception just for // the heck of it, but for demonstration purposes this // should work. // ------------------------------------------------------ throw new Exception ("Silly exception"); } #region Web Form Designer generated code override protected void OnInit(EventArgs e) { InitializeComponent(); base.OnInit(e); } /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.Load += new System.EventHandler(this.Page_Load); } #endregion } }