473,472 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

c# asp.net OpenFileDialog

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
Jul 7 '08 #1
2 3184
<ch********************@gmail.comwrote in message
news:a4**********************************@f36g2000 hsa.googlegroups.com...
Is this possible in a web app?
Yes, but not natively.
Would I have to use an ActiveX control
I wouldn't recommend an ActiveX control because of the security
considerations.

I use this: http://www.utechsoft.com/products/uu...webdemo/basic/
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 7 '08 #2
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
Jul 8 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jody Gelowitz | last post by:
VS.NET 2002 and 2003 are installed. ..NET Framework 1.0 and 1.1 installed Program running under VisualBasic.NET 2002 with .NET Framwork 1.0 I am experiencing a problem with ADO.NET where the...
3
by: bobrad | last post by:
MAYBE SOMEBODY CAM HELP I AM USING THE FOLLOWING CODE TO GET A LOCATION OF A FILE IN A WINFORM DIALOG OpenFileDialog openFileDialog = new OpenFileDialog(); OpenFileDialog.Filter = " Access...
2
by: don | last post by:
has anyone experienced problems with interactions between OpenFileDialog and FileStream? When I select "open" from an OpenFileDialog the subsequent calls to FileStream do not create a file. If I do...
4
by: Nagachandra Sekhar Grandhi | last post by:
I am facing a problem with OpenFileDialog. It is as follows. I opened OpenFileDialog dialog box and selected a folder in it. After selecting the folder when i tried to delete the same folder in...
8
by: e-mid | last post by:
why does not openFileDialog have closed event? i want to do something; as soon as the dialog closes. is there a way to do this?
6
by: barbara_dave | last post by:
Hi, All, I want to use the openfiledialog to open different extension files in different directory( only one type files at one time). I set the OpenFiledialog InitialDirectory and Filter...
8
by: marcus.kwok | last post by:
I am having a weird problem and I have can't figure out why it is happening. I create an OpenFileDialog and set a filename filter. When the dialog first opens, the filter works correctly, and...
1
by: sam | last post by:
OpenFileDialog appears to be "holding onto" the parent folder of a selected file until the application using the dialog quits. After creating a folder containing a file, I attempted to select...
3
by: Martijn Mulder | last post by:
It strikes me that System.Windows.Forms.OpenFileDialog seems te 'remember' which directory it was in last, even when a new OpenFileDialog-object is created for every access to the file system....
0
by: mbewers1 | last post by:
Hi I'm having a problem trying to get a customised OpenFileDialog() to fulfil my requirements. The code for this custom-built dialog has been taken from another site...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.