?
Solved

ASP.NET file dialog box

Posted on 2008-10-30
1
Medium Priority
?
445 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 1500 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

Use Filtering Commands to Process Files in Linux

Learn how to manipulate data with the help of various filtering commands such as `cat`, `fmt`, `pr`, and others in Linux.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
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…
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

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