c# asp.net OpenFileDialog

  • Thread starter Thread starter christopher.e.reynolds
  • Start date 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
 
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
 
Back
Top