Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear friends
I want validate my file upload control as file size should not be greater than 75 kb as soon as file fetched message should be displayed
Posted

1 solution

if (fileUpload.PostedFile.ContentLength > (75 * 1024))
 {
  //display error message
 }
 
Share this answer
 
Comments
mayur csharp G 17-Aug-11 3:01am    
Can i measure size in javascript

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900