474,034 Members | 2,423 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to access client harddisk?

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
Nov 18 '05 #1
6 2684
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

"angus" <an***@angus.co m> wrote in message
news:uf******** ******@TK2MSFTN GP12.phx.gbl...
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

Nov 18 '05 #2
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

"angus" <an***@angus.co m> wrote in message
news:uf******** ******@TK2MSFTN GP12.phx.gbl...
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

Nov 18 '05 #3
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

"angus" <an***@angus.co m> a écrit dans le message de
news:uf******** ******@TK2MSFTN GP12.phx.gbl...
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

Nov 18 '05 #4
>
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.
Regards
Martin

"angus" <an***@angus.co m> wrote in message
news:uf******** ******@TK2MSFTN GP12.phx.gbl...
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


Nov 18 '05 #5
"angus" <an***@angus.co m> wrote in message
news:O6******** ******@TK2MSFTN GP11.phx.gbl...

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.


If you used a Windows application to put the data into Access, then use a
Windows application to sync the data with SQL Server.
--
John Saunders
johnwsaundersii i at hotmail
Nov 18 '05 #6
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

"angus" <an***@angus.co m> wrote in message
news:O6******** ******@TK2MSFTN GP11.phx.gbl...

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.
Regards
Martin

"angus" <an***@angus.co m> wrote in message
news:uf******** ******@TK2MSFTN GP12.phx.gbl...
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



Nov 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
318
by: JanakiRaman | last post by:
Hi, Can I install visual studio .NET 2003 from harddisk? Thanks in advance, JanakiRaman S
1
1346
by: Joseph Abreu | last post by:
I've got a webservice returning a typed dataset -- I've got a client app with one library that downloads and writes the dataset to the harddisk and another library that later opens the dataset. Openning the dataset works fine and all data is there and intact but when trying to cast from Object to TypedDataSetClassName, I get an InvalidCast exception. I verified the namespaces and everything that I can think of matches with the typed dataset in...
2
2915
by: Internet Arrow Limited | last post by:
Hi, I have a requirement to write an access application that must run under access97 and access2K. Some users will use Acess2K to access data that will also be accessed by Access97 users. The source data must therefore remain in Access97 format The user community has a mixture of access97 on WinNT; access2K on winNt and access2K on win2K.
3
2816
by: Daniel | last post by:
Hi all, How to read file that resides at Client harddisk and save in server site? any ideas? thank you. Best regards, Ocurnos
4
1673
by: JoskeXP | last post by:
Hi I have pictures as Jpeg file on harddisk How can I load a picture from Harddisk in a PictureBox I have the name of the picture in a textbox (databinding with a Database Th JoskeXP
6
1538
by: mohamed azaz | last post by:
hi I want to know how can I create a simple doc file to drive D in Harddisk by using c++ code please answer me Quickly bye bye
3
2855
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
I have a asp.net app, in the page there is a scan activex which could scan and save a jpg file in client harddisk. How could we access and display this jpg file on the fly using js in the client IE? Thanks, -Billy zhang
9
6338
rpnew
by: rpnew | last post by:
Hi All, i recently got new Compaq laptop- CQ 45-106 AU (If i'm not wrong- will update it after reaching home.). Now i have two questions regarding this. First one is i want to make partition of my hard disk. My laptop harddisk is around ~ 250GB. Now i would like to make partition of lets say 50GB each. Presently there are two partitions.One is of recovery and that is of 10 GB and rest is allocated to C drive. Now what i want is to make...
0
1587
by: foltac | last post by:
We run a database replication process that ultimately puts a new copy of an Access DB in a new folder (on the server harddisk) every night. The folder is programmatically named and includes the “time” so I can’t path to a file (the Access file remains the same name every day) that is in a directory that changes daily. I am wondering if there is a batch file that can be written that looks for (like a search) the filename regardless of where it...
0
10515
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10320
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
12102
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
11584
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...
0
10279
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...
0
7841
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6795
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
5381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3944
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.