file attachment

asp.net United States
  • 17 years ago

    i m using asp.net to do the file attachmnet. my problem is i do not know how to control the max size of file upload. i set in web.config that
    <httpRuntime executionTimeout="90" maxRequestLength="10240"
       useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
       minLocalRequestFreeThreads="4" appRequestQueueLimit="100" />
    butone i clikc the browse button, if the uploaded file exceed the maxlength, an error page occur. how can i control it so that instead of prompting out the error page, it prompt out the warning msgbox or other.


    thanks for helping me.

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“In theory, theory and practice are the same. In practice, they're not.”