Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way to read files on the client from ASP?
Message
From
18/04/2001 11:35:43
 
 
To
17/04/2001 13:44:26
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00496197
Message ID:
00496706
Views:
7
>>>Hi all,
>>>
>>>Is there any way for ASP to use the DOM or any other client-side functions to read a file on the client (i.e. a text file or something)?
>>>
>>>I'm pretty sure this is not possible (I would have to run a program which resides on the client and upload it to the web server or something).
>>>
>>>Thanks for your help!
>>>
>>>-JT
>>
>>If they are using IE then the answer is yes, if they will let you. You would have to use VB script on the client side to do it.
>
>Can you point me towards any articles/examples of this?
>
>Thanks Jeff!
>
>-JT

Hi Jeff,

Ironically, a client just asked us to do this very thing. You can do with client side script in IE with VB or JavaScript. Note that it will pop up a message box about decurity violation, but so long as the user agrees, everything will work fine.

Check http://msdn.microsoft.com/scripting/default.htm, and go into the documentation link under VBScript, then into FileSystemObject's User Guide, and then click on the "Working with files" link. Lots of code samples in both VBScript and JScript there.
Phil
_____________________________
Phil Miles
http://www.philmiles.com
phil@philmiles.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform