when will that exception be thrown? and what's its name?
e.g. i use a IHttpHandler to handle the request, i should catch in the Process method? or should i implement a IHttpModule and catch that exception in that object?
thanks for that link, but the method introduced does work for me...
i tried Response.Redirect(), but the page i want to direct to never gets called, i referred to MSDN, and it says i should use HttpServerUtility.Transfer()
my page gets called in this way, but after i handled the exception, my IE still display 'page not found'
codavid
Member
34 Points
100 Posts
a question about maxRequestLength
May 04, 2007 12:50 PM|LINK
hi,
what will happened if the size of the file that is uploaded is greater than the size the system allowed?
will asp.net response automatically or i can catch this and inform the user friendly?
how to do that?
file upload maxRequestLength
Mikesdotnett...
All-Star
154818 Points
19853 Posts
Moderator
MVP
Re: a question about maxRequestLength
May 04, 2007 01:10 PM|LINK
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter
codavid
Member
34 Points
100 Posts
Re: a question about maxRequestLength
May 04, 2007 01:50 PM|LINK
hi,
when will that exception be thrown? and what's its name?
e.g. i use a IHttpHandler to handle the request, i should catch in the Process method? or should i implement a IHttpModule and catch that exception in that object?
please give me some more detail, thanks!
Mikesdotnett...
All-Star
154818 Points
19853 Posts
Moderator
MVP
Re: a question about maxRequestLength
May 04, 2007 02:24 PM|LINK
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter
codavid
Member
34 Points
100 Posts
Re: a question about maxRequestLength
May 05, 2007 04:34 AM|LINK
hi,
thanks for that link, but the method introduced does work for me...
i tried Response.Redirect(), but the page i want to direct to never gets called, i referred to MSDN, and it says i should use HttpServerUtility.Transfer()
my page gets called in this way, but after i handled the exception, my IE still display 'page not found'
any idea?
codavid
Member
34 Points
100 Posts
Re: a question about maxRequestLength
May 05, 2007 04:43 AM|LINK
oooops!!
the Transfer method works fine, after i changed to FF.
i think my IE cache that page, and display wrong information