Author: int08h | Posted on: 6/8/2008 9:22:38 AM | Views : 318

I have an asp.net web application, and in Default.aspx I put a Button, int the Click handler of Button I simply throw an exception:

 1 public partial class Default : System.Web.UI.Page
2 {
3 protected void Page_Load(object sender, EventArgs e)
4 {
5
6 }
7
8 protected void Button1_Click(object sender, EventArgs e)
9 {
10 throw new Exception("FDSFSA");
11 }
12 }

 

in Global.asax I write my Application_Error to redirect back to Default.aspx
Go to the complete details ...