File upload as ASP.Net control??


N

No one

I need to upload two files, one at a time. The only file control I can
find uses the <input type="file" />, so the handling code has to go in
the HTML side and not the code behind. I would much rather code this in
the proper place for good practice. Is there an ASP.Net control for
file upload (the <asp: /> tagged controls)? Or do I have to do this the
ugly way??

Thanks.
 
Ad

Advertisements

N

no one

Thanks....now if only I could stuff this file into an MS SQL database directly.
 
Ad

Advertisements

K

Kevin Spencer

Thanks....now if only I could stuff this file into an MS SQL database
directly.
You can, but whether you should or not is a question to consider. Storing a
file in a database entails extra expense when working with the file, as it
must first be stored in the database, which can be expensive, depending upon
the size of the file, and be fetched in binary form from the database, which
involves a good hit to the database, and then turned back into a file or
file stream. Generally, references to files (names or paths) should be
stored in a database, and the files themselves in the file system.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top