//In InitializeComponent |
this.Error += new System.EventHandler (this.Page_Error ); |
// |
private void Page_Error(object sender, System.EventArgs e ) |
{ |
Response.Write(Server.GetLastError().ToString()); |
Server.ClearError (); |
} |