Solved

ASP.NET file dialog box

Posted on 2008-10-30
1
435 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…

688 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