I am using ASP.net with VB.NET. Is there some Validator that i can use that will check the size of the uploaded image? Else what must i do in code to make sure that the user do not upload images more than 1MB?
Thanks in advanced
p.s C# code will also do, i can use a converter to VB.NET
EDIT
For some reason when i change the maxRequestLength to 1024 (in my WEB.config) and i upload a image with size 1.25mb then i get the Microsoft Error page saying "Internet Explorer cannot display the webpage"......... And i do have a Try Catch block inside my Submit button.....If i remove the maxRequestLength from my Web.config then it works fine......................