You can handle the exceptions that occur within Snowflake by doing the following in the asp.net that contains Snowflake:
1. Add following code and change the behavior in any way you like within the code:
private void Page_Error(object sender, EventArgs e)
{
string errorMessage = "Error occurred:" + Server.GetLastError();
Server.ClearError();
Response.Write( errorMessage );
}
2. Bind this function to the Page Error event by adding following in the InitializeComponent function of the page:
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
this.Error += new System.EventHandler(this.Page_Error); // this one we just added for the page handling
}
This is standard asp.net handling of any exceptions generated so it would catch any other errors on the page.
See Also Handling the drillthrough
|
|
Copyright © 2004 Intellimerce Inc. All rights reserved.