473,386 Members | 1,621 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,386 software developers and data experts.

open file button More options

Hi,

I want to create an 'open file button' using asp control button, which
will display open file
dialog box for users to choose the location of folders to be read. It
might be easy for Windows Application, but i want to do it from web
application. Can someone provide me any examples of code or
suggestions to solve it?
Thank you.

Feb 10 '07 #1
4 1558
I want to create an 'open file button' using asp control button, which
will display open file
dialog box for users to choose the location of folders to be read. It
might be easy for Windows Application, but i want to do it from web
application. Can someone provide me any examples of code or
suggestions to solve it?
You just link to the file:

<a href="/the/file.doc">open file</a>

-Darrel
Feb 10 '07 #2
Yes, the hyperlink will open a file, but how do you let the user
BROWSE and pick a file like with the file upload control?

One way I can think of is to use the hyperlink method that Darrel
suggests, but point to a directory instead of a file. That way the
user can browse all the files in the directory. This should work
pretty well, but it's still not the standard "File Open" dialog you'd
have with a WinForms app.

Feb 10 '07 #3
"GroupReader" <ne***********@hotmail.comwrote in message
news:11**********************@a34g2000cwb.googlegr oups.com...
Yes, the hyperlink will open a file, but how do you let the user
BROWSE and pick a file like with the file upload control?
There's nothing built-in to support that - you'll need to roll your own or
use a 3rd-party solution.

I use this:
http://www.utechsoft.com/products/uupload/
http://www.utechsoft.com/products/udownload/
Feb 10 '07 #4
The only control that allows a user to browse their own file system from
their browser is the HTMLInputFile ("File Upload") control.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"nu******@yahoo.com" wrote:
Hi,

I want to create an 'open file button' using asp control button, which
will display open file
dialog box for users to choose the location of folders to be read. It
might be easy for Windows Application, but i want to do it from web
application. Can someone provide me any examples of code or
suggestions to solve it?
Thank you.

Feb 10 '07 #5

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

Similar topics

4
by: Paul Eaton | last post by:
Hi I am developing my first asp appication (vbscript). I am storing cheques scans (in pdf format) in the file system along with the db on the server. The following code is working without...
1
by: William Starr Moake | last post by:
Another problem with the browser-based WYSIWYG editor I'm trying to assemble using IE's design mode. This opens the selected page in the editor iframe named iView: <select name="template"...
5
by: John Bowman | last post by:
Hi, I need some dialog handling help, I must be missing something obvious here but I can't figure out the solution to the following problem... Simple Win Forms app that has button on the form....
4
by: John | last post by:
Hi, I generate a report in a comma delimited file and give it a name like MyReport.csv . I then set a Hyperlink control to point tp the file HyperLink1.text = "Download"...
2
by: Seok Bee | last post by:
Dear Experts, In my web application, I am having a button to open a file located in the server. When I click on the button to view the file, I received the following error message:...
0
by: nuhura01 | last post by:
Hi, I want to create an 'open file button' using asp control button, which will display open file dialog box for users to choose the location of folders to be read. It might be easy for Windows...
1
by: Joe | last post by:
I never use the designer to work with my XSD, and it hangs for a few seconds when opening so I have to wait before I can switch to code view. How can I change the default to open the code / source?...
8
by: Arno R | last post by:
Hi all. When I need to search for pictures, I always have too choose thumbnail-view manually. Is it possible to open the common dialog in thumbnail-view programmatically? Example ?? At the...
8
by: evenlater | last post by:
I have an .accde file with custom ribbons and with "Allow Full Menus" set to False, but the Office Button menu still gives the user the ability to create a new Access database, or -- much worse --...
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: 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
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.