473,657 Members | 2,355 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1575
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
"GroupReade r" <ne***********@ hotmail.comwrot e in message
news:11******** **************@ a34g2000cwb.goo glegroups.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
33516
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 problem except that:- I want to display the scan/pdf in a new window and keep the current window at the current position within the application.
1
8784
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" onChange="window.open(this.options.value,'iView')"> <option>TEMPLATES</option> <option value="template1.htm">Template 1</option> <option value="template2.htm">Template 2</option>
5
3423
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. The click event handler for the button creates another dialog (as a form object) and calls it's ShowDialog method to dsiplay it modally. The secondary dialog then appears that has OK and Cancel buttons and the user can interact as expected. Now...
4
5095
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" Hyperlink1.NavigateUrl = "MyReport.csv" When the user clicks the HyperLink I would always like to
2
4235
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: ---------------------------------------------------------- Exception from HRESULT: 0xC004800A Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and...
0
737
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 Application, but i want to do it from web application. Can someone provide me any examples of code or suggestions to solve it?
1
2878
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? I searched on here and saw a post which seemed to answer my question, saying to go to Tools - Options - XML Designer, but there is no such section in the Options menu in my version of the program. Thanks
8
4689
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 moment I am using Ken Getz' code. at http://www.mvps.org/access/api/api0001.htm Thanks Arno R
8
2600
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 -- open an existing one. My application is on a terminal server and I'm trying to plug all the holes so the user can't do anything but use my application. But right now if the user goes to the Office Button and clicks "Open", he can navigate to...
0
8827
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8504
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8606
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7337
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6169
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1622
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.