Maximum size of request content:

Greetings…

Can I programatically, determine if the document being submitted has exceeded the ‘Maximum posting size limit’? I am facing problem submiting the document. It just throws an exception and displays page cannot be displayed error on the screen. No idea how to catch the exception. Could you please help me out on this.

Thanks in advance!