Solved

ASP.NET file dialog box

Posted on 2008-10-30
1
427 Views
Last Modified: 2013-11-08
I have a ASP.NET web page I'm working on.  I need the user to be able to pick a file from a directory that will be available on the users local PC.  When the user clicks the 'browse' button, I would like to be able to programmatically set a default directory that will automatically come up.  Presently, the FileUpload1 widget brings up the 'my documents' folder and the user would have to perform several clicks to get to the desired directory.

Thanks.
0
Comment
Question by:bugsnbre2
1 Comment
 
LVL 14

Accepted Solution

by:
Ramuncikas earned 500 total points
ID: 22845850
It is not possible. Only browser decides which folder will be initial for file uploading dialog. Different browsers can use different initial folders. Even not all (if any) browsers support browsing for a certain type of file (e.g. *.jpg).

I have not used/tried any but you may try to see what features have file upload controls implemented in flash and used by ASP.NET. Maybe they are more flexible. They can show file upload progress, they can upload two or more files at a time. Maybe they can help you with initial folder.

R
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question