Click here to Skip to main content
15,895,256 members

Comments by MalikRizwan (Top 36 by date)

MalikRizwan 27-Oct-10 4:05am View    
please post your code
MalikRizwan 13-Oct-10 12:19pm View    
Can you rate answer again? it is rated lowest
MalikRizwan 13-Oct-10 0:28am View    
I won't why this answer wasn't rated and other was rated?
MalikRizwan 5-Oct-10 8:41am View    
Ignore my last message please..

When you use FileUpload.. before uploading you can count number of bytes in file you are uploading.. using "ContentLength" property. use this property and match length of uploaded file with one you defined in web.config.. if uploaded file size is greater than that.. redirect to error page.
as when your application times out. you can not catch it until unless you write sometime to handle that on IIS level.

Please rate my answer if it helps
MalikRizwan 5-Oct-10 8:36am View    
Why don't you just put your code in try catch and catch "TimeoutException"?