Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making ASP page read a file on local drive

Status
Not open for further replies.

MJI111

MIS
Jul 9, 2005
11
NG
Pls is there a way i can code my asp pages such that as soon as the client clicks a button on the pages, it goes to a particular directory on the client's machine to read a text file and display it for him/her to verify before submiting it. I have a business requirement to load a file from client's machine automatically when he clicks a button.

Any Idea how i can achieve it. i am only skillful in ASP and vbscripts (and VB6.0)

Thanks
 
Thanks Chris. But cab vbscript or activeX component do it for me. How do you think i can get this resolved. My client wants my payment system to be able to do this in order to help them send payment instructions to me.
 
I think you'd be better off with JavaScript than VBScript unless you know for certain that all users will be working with Internet Explorer.

ActiveX components can do great things but they can also do malicious things so users will get a warning box allowing them to reject the downloading of these objects. Also they will only work on windows machines so no Mac, *nix, blackberry, or cell phone browsers will use them.

As far as ASP is concerned, your best bet might be to just have the user upload the file and then use it to send a page right back to them showing the file contents for their approval... of course then if they don't approve they've got to fix it for themselves and resubmit...
 
Instead of a file, can't you just store the data in a cookie? That's exactly what they are intended for.


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Thanks Sheco and tsdragon. May be i need to play back the business request for which i am desperately looking for solution. My client wants to tranfer a payment instruction file to my system for processing. There are two people from my client instituition that will make this happen. The maker and the checker. The maker is not aware of where the payment file is located. All that is required of him is to call my website, login and click a button which initiates the entire file copy process. The checker would have set the path to the location of the file his on environemnt.As soon as the maker clicks the button, my system should use the path to locate the file and then tranfer. The checker then logs on and verify the content and the approve again. Of course at this time i already have the file so it is easy for me to present the file for verification. If cookie can do it, then how pls . My client is ready to stabilise on Microsoft IE. Thanks . I need help pls
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top