ASP.Net How to check filesize before upload?

Hi All

I have a form that has multiple file upload fields, i have javascript to check the file type and only allow what i want, but how will i  check the file size and make sure its under a specific limit before i do upload?
if there is a way to do it with Javascript that would be great as i want to avoid any postback as that will empty all the FileUpload controls values.

LVL 7
urir10Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

masterpassCommented:
Have a look at already solved issue

http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_20805196.html

just go through the accepted solution
0
urir10Author Commented:
Thanks for your reply but i cant use active x as my corporation doesnt allow some of its users to install it.
0
masterpassCommented:
then you can go for jQuery or Flash File uploader .. I prefer Jquery uploader

http://webdeveloperplus.com/jquery/multiple-file-upload-with-progress-bar-using-jquery/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
urir10Author Commented:
Thanks, i will try this and see where it gets me.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.