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.

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.

Have a look at already solved issue

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

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.
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

From novice to tech pro — start learning today.