PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 5.00 average.

c# asp.net OpenFileDialog

 
 
christopher.e.reynolds@gmail.com
Guest
Posts: n/a
 
      7th Jul 2008
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
 
Reply With Quote
 
 
 
 
siccolo
Guest
Posts: n/a
 
      8th Jul 2008
On Jul 7, 11:42*am, christopher.e.reyno...@gmail.com wrote:
> 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/Code...d_control.html


more at http://www.siccolo.com/articles.asp
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Common OpenFileDialog size and position =?Utf-8?B?TGl6IEphbWVz?= Microsoft Access 0 31st Mar 2005 02:05 AM
How to read listbox part of OpenFileDialog Bill Rogers Microsoft Dot NET Framework 5 1st Oct 2003 01:53 AM
Re: OpenFileDialog.Filter bug? Kevin Westhead Microsoft Dot NET Framework 0 19th Aug 2003 09:33 PM
Problem - Serializing ArrayList After OpenFileDialog Dylan Spence Microsoft Dot NET Framework 2 30th Jul 2003 08:45 PM
OpenFileDialog Jonathan Microsoft Access Form Coding 1 9th Jul 2003 11:31 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:35 AM.