P
Pavel Dvorkin
Hi All,
I have next problem.
A page contains HtmlInputFile. User tries to upload file. File size is
too large, so I can't allow this request.
Now I have DNS error accoeding to MSDN
When uploading large files, use the maxRequestLength attribute of the
<httpRuntime> element to increase the maximum allowable file size. A DNS
error is generated in the browser when the file exceeds the specified size.
I want simply intercept this situation and redirect user to a special
error page, no more. In other words, I want to cancel this POST request
and force IIS to do a GET request to a special aspx page.
But I couldn't. I get only event BeginRequest in global.asax.vb. I tried
to user Redirect, RewritePath but without success. As for Page_Init,
Page_Load - I even do not got them.
How can I do it ?
I have next problem.
A page contains HtmlInputFile. User tries to upload file. File size is
too large, so I can't allow this request.
Now I have DNS error accoeding to MSDN
When uploading large files, use the maxRequestLength attribute of the
<httpRuntime> element to increase the maximum allowable file size. A DNS
error is generated in the browser when the file exceeds the specified size.
I want simply intercept this situation and redirect user to a special
error page, no more. In other words, I want to cancel this POST request
and force IIS to do a GET request to a special aspx page.
But I couldn't. I get only event BeginRequest in global.asax.vb. I tried
to user Redirect, RewritePath but without success. As for Page_Init,
Page_Load - I even do not got them.
How can I do it ?