G
Guest
I have changed my config files to set the limit for files being uploaded to
30 MB, but every now and then someone tries to upload a file larger than this.
All I want, is to be able to trap the error and tell the user what happened.
I can trap the error in the page_error (Page.Error) event, and I believe I
was also trapping it at the application_error level at one point.
My problem is, once I trap the error, I can't do anything to tell the user
what happened. If I try to display an error message in a asp.net label, or
response.write some text, or response.redirect them to another page, or just
set the errorPage property for the upload page to some URL, none of these
work.
When you upload a large file, the error is trapped correctly, and then the
browser shows the "Page cannot be displayed" message, no matter which of the
methods above I have tried.
Can anyone help me with this one?
30 MB, but every now and then someone tries to upload a file larger than this.
All I want, is to be able to trap the error and tell the user what happened.
I can trap the error in the page_error (Page.Error) event, and I believe I
was also trapping it at the application_error level at one point.
My problem is, once I trap the error, I can't do anything to tell the user
what happened. If I try to display an error message in a asp.net label, or
response.write some text, or response.redirect them to another page, or just
set the errorPage property for the upload page to some URL, none of these
work.
When you upload a large file, the error is trapped correctly, and then the
browser shows the "Page cannot be displayed" message, no matter which of the
methods above I have tried.
Can anyone help me with this one?