A
APA
I have the following error handler on my page:
public void Page_Error(object sender,EventArgs e)
{
System.Exception appException = Server.GetLastError();
HttpException checkException = (HttpException)appException;
if ((checkException.ErrorCode == -2147467259))
{
HttpContext.Current.Server.ClearError();
FileSizeUploadError = true; //class level private variable
}
}
It's used to detect uploaded file size errors. It traps the error fine but
once the event handler completes nothing else on the page is processed and I
receive a "The page cannot be displayed" message in my browser. Why is it
not completing my page?
public void Page_Error(object sender,EventArgs e)
{
System.Exception appException = Server.GetLastError();
HttpException checkException = (HttpException)appException;
if ((checkException.ErrorCode == -2147467259))
{
HttpContext.Current.Server.ClearError();
FileSizeUploadError = true; //class level private variable
}
}
It's used to detect uploaded file size errors. It traps the error fine but
once the event handler completes nothing else on the page is processed and I
receive a "The page cannot be displayed" message in my browser. Why is it
not completing my page?