I set the maxRequestLength ="1024" in my web.config, so everytime the user upload file more than 1MB, it doesn't present any errors, but just display page cannot be displayed. Is there a way to present a message rather than the IE message?

also, how to determine the size of the image when the users upload the image file and crop it?