473,385 Members | 1,740 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Fileupload Browse default location

Is it possible to change the default location for the FileUpload
control so that it searches a file from within the web page file
structure? Even more specific...limit it to one folder within that web
structure?

Nov 18 '06 #1
4 7175
The fileupload control is an HTML INPUT FILE control that provides a file
browser dialog to select a file on the CLIENT's computer to upload, not a
file from the web server. Are we talking about the same thing here?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Dave" wrote:
Is it possible to change the default location for the FileUpload
control so that it searches a file from within the web page file
structure? Even more specific...limit it to one folder within that web
structure?

Nov 19 '06 #2
Dave,

As it is what Peter suspect, than you can create your own Dropdown or
listbox and let the user choose out of that and give them to him while he is
using a Href

Cor

"Dave" <Ki************@Verizon.Netschreef in bericht
news:11**********************@m73g2000cwd.googlegr oups.com...
Is it possible to change the default location for the FileUpload
control so that it searches a file from within the web page file
structure? Even more specific...limit it to one folder within that web
structure?

Nov 19 '06 #3
Cor,
Is there an article anywhere that you would recommend on how to
populate a Dropdown with the contents of a folder?

Thanks again.


Cor Ligthert [MVP] wrote:
Dave,

As it is what Peter suspect, than you can create your own Dropdown or
listbox and let the user choose out of that and give them to him while he is
using a Href

Cor

"Dave" <Ki************@Verizon.Netschreef in bericht
news:11**********************@m73g2000cwd.googlegr oups.com...
Is it possible to change the default location for the FileUpload
control so that it searches a file from within the web page file
structure? Even more specific...limit it to one folder within that web
structure?
Nov 19 '06 #4
Dave,

Not exact, however with this directoryinfo class and its sample it should be
a piece of cake.

http://msdn2.microsoft.com/en-us/lib...ctoryinfo.aspx

Cor

"Dave" <Ki************@Verizon.Netschreef in bericht
news:11**********************@e3g2000cwe.googlegro ups.com...
Cor,
Is there an article anywhere that you would recommend on how to
populate a Dropdown with the contents of a folder?

Thanks again.


Cor Ligthert [MVP] wrote:
>Dave,

As it is what Peter suspect, than you can create your own Dropdown or
listbox and let the user choose out of that and give them to him while he
is
using a Href

Cor

"Dave" <Ki************@Verizon.Netschreef in bericht
news:11**********************@m73g2000cwd.googleg roups.com...
Is it possible to change the default location for the FileUpload
control so that it searches a file from within the web page file
structure? Even more specific...limit it to one folder within that web
structure?

Nov 19 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: David Norman | last post by:
I want to implement a repetitive admin function of kicking off an operation using a file that changes infrequently. All I'm interested in is the file name and path, I'm not performing any file...
2
by: Jo | last post by:
Hi all, I've created a FileUpload in the footer of a Gridview. The only thing I want to do with this, is to pick a file with the Browse-button or to fill in a filename myself (without the...
3
by: yeltsin27 | last post by:
Theming seems only to affect the text box of a FileUpload control, not the Browse button. Is there any way to theme the button as well? Thanks, ChrisN
0
by: dieter grobler | last post by:
Hi there, I wanted to know if there is a way to specify the default location the OpenFileDialog shows when the browse button is pressed on the FileUpload Control. i.e "c:\program files\". I know...
3
by: rn5a | last post by:
The ASPX FileUpload control displays a TextBox along with a 'Browse...' Button. Setting the different properties of this control just reflects the changes in the TextBox but not the Button. For...
1
by: nicknack | last post by:
Hello. I would like to give my user the option to browse his files (like the simple fileUpload control do) and after selecting the file (and when the fileUpload control hold in his text box the...
5
by: =?Utf-8?B?QmVydA==?= | last post by:
Hi How can you set the filename property in the asp:fileupload control? How can you persist the value of the chosen filename between postbacks? thanks B
2
by: =?Utf-8?B?SmFtZXMgUGFnZQ==?= | last post by:
I'm using an asp.net 2.0 fileUpload control which works fine. What I'd like is that when a user clicks on the browse button the dialog shows thumbnails view instead of the default list view. Is...
4
by: ravitunk | last post by:
hello...i have a fileupload control on my page and if i browse to a file(i.e.,now the fileupload control's property 'hasfile' is 'true') and then if i post back the page for any validations, the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.