Displaying message when the file size exceeds the limit.

Feb 5 2007 4:05 AM

I am developing a web based application in C#.net. In this i have to browse control in which i have to select an Excel file. The problem with this is when i gave larger files it immediately crashes. I set a parameter  in web.config file so that it can take files up to 8MB size.

Now what i need is How to display a warning message immediately when user selects a file with more than the expected size.


Please help me.

Thanks in Advance.

Ramu Medida.