473,394 Members | 1,971 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,394 software developers and data experts.

save dataSet in xml file

im trying to save the content of a DataSet to xml file but im getting the
message-
" This file has modified outside of the source editor
do you want to reload it ? "
what im missing?

this is what i have wrote-
dataset1.AcceptChanges
dataset1.WriteXml("PathFile.xm")

thanks

Jul 21 '05 #1
4 1511
Hi,

Likely that you have opened the XML file in your VS .NET editor and you are
trying to overwrite that file through your program.

Click Yes on the prompt to see the new XML file content in the editor.

"s-galit" <sg****@discussions.microsoft.com> wrote in message
news:55**********************************@microsof t.com...
im trying to save the content of a DataSet to xml file but im getting the
message-
" This file has modified outside of the source editor
do you want to reload it ? "
what im missing?

this is what i have wrote-
dataset1.AcceptChanges
dataset1.WriteXml("PathFile.xm")

thanks
Jul 21 '05 #2
i dont want the user to see that message
what can i do?

"Shiva" wrote:
Hi,

Likely that you have opened the XML file in your VS .NET editor and you are
trying to overwrite that file through your program.

Click Yes on the prompt to see the new XML file content in the editor.

"s-galit" <sg****@discussions.microsoft.com> wrote in message
news:55**********************************@microsof t.com...
im trying to save the content of a DataSet to xml file but im getting the
message-
" This file has modified outside of the source editor
do you want to reload it ? "
what im missing?

this is what i have wrote-
dataset1.AcceptChanges
dataset1.WriteXml("PathFile.xm")

thanks

Jul 21 '05 #3
Option 1: From VS .NET IDE, select menu Tools, Options. In
Environment/Documents section, check 'Detect when file is changed outside
the environment' and 'Auto-load changes (if not....)' options and click OK.

Option 2: Use a different file name each time you save the dataset to an XML
file.

HTH.

"s-galit" <sg****@discussions.microsoft.com> wrote in message
news:11**********************************@microsof t.com...
i dont want the user to see that message
what can i do?

"Shiva" wrote:
Hi,

Likely that you have opened the XML file in your VS .NET editor and you are trying to overwrite that file through your program.

Click Yes on the prompt to see the new XML file content in the editor.

"s-galit" <sg****@discussions.microsoft.com> wrote in message
news:55**********************************@microsof t.com...
im trying to save the content of a DataSet to xml file but im getting the
message-
" This file has modified outside of the source editor
do you want to reload it ? "
what im missing?

this is what i have wrote-
dataset1.AcceptChanges
dataset1.WriteXml("PathFile.xm")

thanks

Jul 21 '05 #4
Thank you !!!!!!!!!!!!
it helped
Jul 21 '05 #5

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

Similar topics

4
by: Jaime | last post by:
I have to save a dataset to xml and for efficiency I like to get rid of the namespace prefix d2p1: can any one help thanks jaime
2
by: deko | last post by:
I create an XmlDataDocument Dataset when the main form of my WinForms app opens. The user will make changes to the Dataset, and then those changes should be saved to the XML file when the code...
4
by: Jae | last post by:
I'm writing a web application that exports and imports excel files. The application gets a list of users and their info and displays it in a datagrid .The user then selects to save the file as a...
2
by: buran | last post by:
Dear ASP.NET Programmers, I am saving the tables of a dataset into an XML file. I want to save the XML file into the database, then retireve it as a dataset. I use the following code: ...
2
by: DraguVaso | last post by:
Hi, I found some examples for storing the FormSettings of a Form in an XML-file, but none of these could match my criteria: What I am looking for is the possibility to save the FormSettings of...
4
by: s-galit | last post by:
im trying to save the content of a DataSet to xml file but im getting the message- " This file has modified outside of the source editor do you want to reload it ? " what im missing? this is...
10
by: Henok Girma | last post by:
Hello Gurus, I want to save the state of an unbound DataGridView on my Windows Form application to an XML file so i can later load it back.. Basically, on my form I have a DataGridView, it's got...
6
by: alexia.bee | last post by:
Hi all, I am new to C# so please bear me :). I have an app which uses datagridview. it has 8 columns. I also have struct which has 8 members(the same as the datagridview). when I add row to...
5
by: countnazgul | last post by:
Hello, I've got very odd problem. I use windows application to store files in data base (MySql) and then to extract this files from data base and save it on hdd. But when i save them back to hdd...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.