how to access client harddisk?

A

angus

Dear All,

how to read the and write a file to the client's harddisk when using
asp.net?

is it possible to do so?

Thank you.

Regards,
Angus
 
M

Martin Marinov

You can not access the client hdd through the web page. with activeX you
should be but i haven't experienced with activex
to write file the user must to it manually in other case everybody will
write data to the clients machines

what actually you want to do?

Regards
Martin
 
J

James Doran

Angus,

It's not possible to write a file to the client's hard drive when using
ASP.NET. The only information you can persist on their machine is in a
cookie file, which would usually be a unique identifier for that user. Any
information for that user should then be persisted on the server in the
Session or in a database.

Hope this helps,

James
 
P

Patrice

For example the input type=file tag allows the user to select a file to
upload to the server and the user could of course download files.
Else a script could work but the user will have to trsut this script. Could
be also a client side application either as a Java, ActiveX or .NET
application.

You may want to explain what exactly you want to do (for example a .NET app
can work on its own private storage without having access to the whole
harddisk).


Patrice
 
A

angus

what actually you want to do?

Basically, i am going to write a window application. the window application
uses MS Access to store some data offline.

There is a asp.net web application, using MS Sql as database.

After a certain of time, the users can login to the asp.net and "sync" the
MS Access data to MS SQL database. After that, there are some presentation
pages, using the data in MS SQL.

So, first, i have to do is to read the MS Access file in the client local
disk and fretch the data in MS Access and store it in the MS SQL.

I know that i can let the user to upload the MS Access file to the server
and fetch the records there. But besides that, can i read directly from the
client hard disk?

Thank you.
 
M

Martin Marinov

No, you can not , except cookies :(
i suggest you to when the user have to sync the databases to upload the file
and click sync button
this will allow you to be flexible, because of you won't be care for the
path of the database on the client computer
next you will be able to make restores and backup every time

Hope this helps
Regards
Martin
 
J

John Saunders

angus said:
Basically, i am going to write a window application. the window application
uses MS Access to store some data offline.

There is a asp.net web application, using MS Sql as database.

After a certain of time, the users can login to the asp.net and "sync" the
MS Access data to MS SQL database. After that, there are some presentation
pages, using the data in MS SQL.

If you used a Windows application to put the data into Access, then use a
Windows application to sync the data with SQL Server.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top