By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,969 Members | 1,522 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,969 IT Pros & Developers. It's quick & easy.

How to save a TreeView?

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.