Saturday, 15 August 2015

c# - Handling maximum request length exceeded -



c# - Handling maximum request length exceeded -

i know, best way handle "maximum request length exceeded" error in application. have asp.net application in user allowed upload file(pdf or image). handle error. did research , found can handled in global.asax, not sure has done. far understood, have handle in global.asax file , redirect custom error page. please suggest , how custom error page should be?

should html page or jpg file or aspx file? , should content? can redirect same page on error occurred? if yes easier me display error message on same page.

update did client side validations restrict users uploading big file. still how can issue fixed @ server side.

you can check request.totalbytes property in global.aspx file , redirect request error page if totalbytes exceeded youre limit.

c# asp.net global-asax unhandled-exception maxrequestlength

No comments:

Post a Comment