Solved

ASP.NET file dialog box

Posted on 2008-10-30
1
418 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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 …
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…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

777 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