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

How to save a TreeView?

Hi Experts:

I'm using ASP.NET 2.0. I'm using a TreeView control with a design-time
configured XmlDataSource (an XML file). I use the TreeView control as a
"message board" with each node representing a message. I noticed that the
TreeView loads alright from the XML file but did not save anything. I call
the TreeView.Save() for each new node added into the TreeView. What I'm
missing here?

Thanks in advance!
Polaris
Jun 5 '07 #1
2 2220
Correction, I used XmlDataSource.Save().

"Polaris" <et*******@hotmail.comwrote in message
news:eH**************@TK2MSFTNGP05.phx.gbl...
Hi Experts:

I'm using ASP.NET 2.0. I'm using a TreeView control with a design-time
configured XmlDataSource (an XML file). I use the TreeView control as a
"message board" with each node representing a message. I noticed that the
TreeView loads alright from the XML file but did not save anything. I call
the TreeView.Save() for each new node added into the TreeView. What I'm
missing here?

Thanks in advance!
Polaris


Jun 5 '07 #2
Are you getting any exceptions? Save() method cannot be called under certain
scenarios as outlined in the help for the XmlDataSource.Save() method.

"Polaris" wrote:
Correction, I used XmlDataSource.Save().

"Polaris" <et*******@hotmail.comwrote in message
news:eH**************@TK2MSFTNGP05.phx.gbl...
Hi Experts:

I'm using ASP.NET 2.0. I'm using a TreeView control with a design-time
configured XmlDataSource (an XML file). I use the TreeView control as a
"message board" with each node representing a message. I noticed that the
TreeView loads alright from the XML file but did not save anything. I call
the TreeView.Save() for each new node added into the TreeView. What I'm
missing here?

Thanks in advance!
Polaris


Jun 5 '07 #3

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

Similar topics

1
by: Jim P. | last post by:
I'm building a Task program. I've got the XMLTextReader working: opening & parsing the XML files, and propagating the TreeView with nodes & childs. But I don't know how to export out the contents...
1
by: R. Sammut | last post by:
Hi, I have a treeview control that is updated every 30 seconds. The treeview nodes are cleared and new nodes (same number of nodes and hierarchy) are added to the treeview. Now I need to save...
0
by: J.B. | last post by:
Hi all, I have some problem while saving treeview's content to xml file. I have no experience dealing with xml file before. I did some leaning and searching on the web and found some sample codes...
14
by: Mr.D | last post by:
How do I save/load the contents of a Treeview to a file? I have found several good examples written i VB6, but not a single one for VB.NET. Please help. ---- Tim
0
by: Bala | last post by:
Hi In my vb program, I'll store xml element tag name into vb control tag property and I'll save the data to xml file using tag value(name of the xml tag) and control value (value of that control)....
1
by: cjinsocal581 | last post by:
Hi all, I am struggling with the following: Environement: VB.NET 2005 TreeView Control SQL Database I need to be able to save a TreeView's nodes into a SQL database and then be able to call...
1
by: shil | last post by:
Hi, I am trying to list some files from server using .net 2005 treeview control, which I could successfully do it. Also, I would like to open the Open/Save dialog box when user clicks on a file...
3
by: serge calderara | last post by:
Dear all, I have a treeView control which is build with different parent and childs node objects. I try to find out an easy and proper way to save that nodes architecture in a XML file. Then...
0
Ensonix
by: Ensonix | last post by:
I found a post about this, and it had some C# code that wouldn't convert, and when I finally got it converted it didn't work in .NET 1.1. So I made a few changes to the converted VB version and now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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...

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.