c# asp.net OpenFileDialog

  • Thread starter christopher.e.reynolds
  • Start date
C

christopher.e.reynolds

I am writing a web app that inserts audio files into a sql server
database, and i would like most of the insertion to take place
manually. I have already written code that allows me to select a
dynamic amount of files individually for the database insertion, but I
would like to be able to simply select their containing directory and
iterate through each file of the specific type one-by-one, calling my
sproc to insert it. This would eliminate the need for my individual
selection. Is this possible in a web app? Would I have to use an
ActiveX control, since I want this to take place client-side for
administrators only? Please give me a detailed example if you have an
idea for the solution. Thank you,

Christopher Reynolds
 
S

siccolo

I am writing a web app that inserts audio files into a sql server
database, and i would like most of the insertion to take place
manually.  I have already written code that allows me to select a
dynamic amount of files individually for the database insertion, but I
would like to be able to simply select their containing directory and
iterate through each file of the specific type one-by-one, calling my
sproc to insert it.  This would eliminate the need for my individual
selection.  Is this possible in a web app?  Would I have to use an
ActiveX control, since I want this to take place client-side for
administrators only?  Please give me a detailed example if you have an
idea for the solution.  Thank you,

Christopher Reynolds

you can use FileSystemObject() (but you will get security prompt from
IE) from within javascript to iterate in folders/files, and then send
a file one-by-one to a web service.
Or you can use Flash to use for a OpenFileDialog (I'm using
SWFUpload() compnent, for example)

see at http://www.siccolo.com/Articles/CodeProject/UploadControl_Javascript/upload_control.html


more at http://www.siccolo.com/articles.asp
 

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

Members online

Forum statistics

Threads
473,999
Messages
2,570,246
Members
46,839
Latest member
MartinaBur

Latest Threads

Top