473,396 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Saving settings on the client machine

I have a text string containing XML data that I'd like to save on the client
machine, in local text file.
I need to prompt the user for the location of the file, so that the user may
save different XML strings in different files.
How do I provide a file-save dialog box, similar to the one a user is
getting when downloading a file?
Please keep in mind that I'm talking about data that is located at the
client, this data is never at the server.
Nov 18 '05 #1
4 1122
The browser doesn't have permission to write files (other than to its cache
and cookies). So, you would need a client-side app hosted IN the borwser,
Java applet, or ActiveX Control, to do this.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"James" <ne**@att.com> wrote in message
news:07**********************************@microsof t.com...
I have a text string containing XML data that I'd like to save on the client machine, in local text file.
I need to prompt the user for the location of the file, so that the user may save different XML strings in different files.
How do I provide a file-save dialog box, similar to the one a user is
getting when downloading a file?
Please keep in mind that I'm talking about data that is located at the
client, this data is never at the server.

Nov 18 '05 #2
Even if I'm a trusted site??
This is an Intranet application.

"Kevin Spencer" wrote:
The browser doesn't have permission to write files (other than to its cache
and cookies). So, you would need a client-side app hosted IN the borwser,
Java applet, or ActiveX Control, to do this.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"James" <ne**@att.com> wrote in message
news:07**********************************@microsof t.com...
I have a text string containing XML data that I'd like to save on the

client
machine, in local text file.
I need to prompt the user for the location of the file, so that the user

may
save different XML strings in different files.
How do I provide a file-save dialog box, similar to the one a user is
getting when downloading a file?
Please keep in mind that I'm talking about data that is located at the
client, this data is never at the server.


Nov 18 '05 #3
Yes, and if it's people have sp2 installed expect an even hard time. It
would be much much easier to do this as a windows forms based app.
Nov 18 '05 #4
Hi James,

I think Kevin's suggestion is reasonable. The Browser based web application
has very restricted permissions on the client machine which can't finish
the task you required. As for the tasks you mentioned, a rich client app is
not suitable. Thanks.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #5

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

Similar topics

3
by: Vikram | last post by:
Hi, Given below is my task. An user can open the xls file from my website (loaded on the top frame). After filling the Excel, he can click a send button at the bottom frame. By clicking the...
6
by: harry | last post by:
Hi, I have a program that runs on multiple client pc's. Occasionally one or more of those pc's use VPN to connect to another corporate network. When using VPN they need to set proxy server in...
7
by: MrNobody | last post by:
I was a Java developer so I'm used to using property files as a means to keep configuration settings for my apps. I'm wondering what options are there with ..NET? Some settings I want to include...
4
by: Kourosh | last post by:
I have a log file that is viewed on the local machine. There are some settings on the html page that allow the user to specify how the file is viewed. I'm just wnodering what are my options in...
4
by: Pedro Leite | last post by:
Good Afternoon. the code below is properly retreiving binary data from a database and saving it. but instead of saving at client machine is saving at the server machine. what is wrong with my...
1
by: harriegovin | last post by:
Hi, Here is the scenario. I have a web application written in vb.net. One of the functionalities of the application is to save the recordset in an xml format on to the client machine. The xml...
1
by: randy1200 | last post by:
I have a DLL Winform project. I've double-clicked Settings.settings under Properties, and create the following application setting: Name: MySetting1, Type: string, Scope: Application, Value:...
4
by: Bill Nguyen | last post by:
How can I detect timezone and whether daylight saving is applied on a client PC/server using VB.NET? Thanks Bill
3
by: Tsahi Asher | last post by:
hi, i was trying to save the window size of my app using the generated Settings class of Visual C# 2005 Express. for some reason, the stored size was bigger from the actual size, so each time i...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.