Solved

ASP.NET file dialog box

Posted on 2008-10-30
1
402 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now