Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - ’M tired, trying to do
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

’M tired, trying to do

 Post Reply Post Reply
Author
qtechs View Drop Down
Newbie
Newbie


Joined: 20 August 2003
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote qtechs Quote  Post ReplyReply Direct Link To This Post Topic: ’M tired, trying to do
    Posted: 25 August 2003 at 1:48am

Anyone knows how to read contents in local file...

My problem is...

I want my ASP page should enable user to browse his/her local drive(i.e. c:.d:,E: etc) and select a file (may it be a text file) and my asp page then will read the content of that text file and will show same...

I am badly inneed of that...

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2003 at 4:00am

Upload it using a component www.dundas.com www.dimac.net are good ones, and use file system object to read the file once its uploaded (you can use fso to delete the file after if neccessary).

Mart.

Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2003 at 7:10am

and building on Mart's answer...

realize that ASP runs on the web server and does not have access to a user's HD (could you imagine the hacker mayhem if it did?)

in ASP, the file MUST exist on the same server that the site runs on to have access to it

Contribute to the working anarchy we fondly call the Internet
Back to Top
qtechs View Drop Down
Newbie
Newbie


Joined: 20 August 2003
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote qtechs Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2003 at 7:48am

Thanks a lot both of you,

Morning I got Mart's Answer and was trying...and now MorningZ has replied in very very wisely...Thanks once again, now I could understand , what a stupid thing I was looking for any way as Mart says I should first upload the file and then can read through it...Its quite comprehensive...but,I might be stupid being not able to implemenmt..., I could not implement that logic...as I was looking for some ready to use script to upload files rather than using such installable files...'COZ in the client machine that has to be installed first and all night not be having the same...

Can I EXPECT A MORE GENERALIZED SOLTn.

Thanks..

 

Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2003 at 8:24am

its not impossible to do without first getting to the server... there are lots of (expensive) VBScript ActiveX controls that can do almost anything to files on the client machine....  with these, you'll get that "certificate" popup that you may run across here and there when something tries to install something locally of a web page (Microsoft's download control, Google's Toolbar, etc)....

but i wasn't trying to be "wise", i was just trying to definitively point out that ASP (thankfully) has zero access to client files (except of course cookies)... sorry if you were easily offended or whatever.....

Contribute to the working anarchy we fondly call the Internet
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.