Click here to Skip to main content
16,004,919 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Maintain the Session using AJAX. Pin
YossiKahlon22-Jun-06 22:58
YossiKahlon22-Jun-06 22:58 
GeneralRe: Maintain the Session using AJAX. Pin
minhpc_bk22-Jun-06 23:07
minhpc_bk22-Jun-06 23:07 
GeneralRe: Maintain the Session using AJAX. Pin
YossiKahlon23-Jun-06 2:23
YossiKahlon23-Jun-06 2:23 
GeneralRe: Maintain the Session using AJAX. Pin
minhpc_bk23-Jun-06 12:27
minhpc_bk23-Jun-06 12:27 
QuestionAccess Denied error [modified] Pin
maizhiming22-Jun-06 10:00
maizhiming22-Jun-06 10:00 
AnswerRe: Access Denied error Pin
minhpc_bk22-Jun-06 15:42
minhpc_bk22-Jun-06 15:42 
AnswerRe: Access Denied error Pin
Sushant Duggal22-Jun-06 19:01
Sushant Duggal22-Jun-06 19:01 
GeneralRe: Access Denied error Pin
maizhiming26-Jun-06 6:21
maizhiming26-Jun-06 6:21 
Here is the code that I am using. I am referencing the file in the last sub-routine "Save_Click".


   Sub SaveNodes(ByVal nodesCollection As TreeNodeCollection, ByVal textWriter As System.Xml.XmlTextWriter)
      Dim link_node As TreeNode
      For Each link_node In nodesCollection
         If link_node.ChildNodes.Count Then
            textWriter.WriteStartElement("Folder")
            textWriter.WriteAttributeString("Name", link_node.Text)
            textWriter.WriteRaw(vbCrLf)
         Else
            textWriter.WriteStartElement("Link")
            textWriter.WriteAttributeString("Name", link_node.Text)
            textWriter.WriteAttributeString("Location", link_node.NavigateUrl)
         End If

         If link_node.ChildNodes.Count > 0 Then
            SaveNodes(link_node.ChildNodes, textWriter)
         End If
         textWriter.WriteEndElement()
         textWriter.WriteRaw(vbCrLf)
      Next
   End Sub

   Sub SaveTreeViewData(ByVal treeView As TreeView, ByVal path As String)
      'Create a serializer and file to save TreeViewData
      Dim TextWriter As New System.Xml.XmlTextWriter(path, System.Text.Encoding.UTF8)

      TextWriter.WriteStartDocument()
      TextWriter.WriteRaw(vbCrLf)

      SaveNodes(treeView.Nodes, TextWriter)

      TextWriter.Close()
   End Sub


   Protected Sub Save_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Save.Click
      SaveTreeViewData(Link_Tree, "favorites.xml")
End Sub

QuestionNetwork Service error, App "timeout" Pin
PhrankBooth22-Jun-06 7:34
PhrankBooth22-Jun-06 7:34 
QuestionJava Applet not loading in Asp.Net 2.0 page Pin
jszpila22-Jun-06 6:54
jszpila22-Jun-06 6:54 
QuestionWhy Event is not firing for an ASP.NET Button?? Pin
SIJUTHOMASP22-Jun-06 6:50
professionalSIJUTHOMASP22-Jun-06 6:50 
AnswerRe: Why Event is not firing for an ASP.NET Button?? Pin
jszpila22-Jun-06 6:57
jszpila22-Jun-06 6:57 
GeneralRe: Why Event is not firing for an ASP.NET Button?? Pin
SIJUTHOMASP22-Jun-06 7:16
professionalSIJUTHOMASP22-Jun-06 7:16 
GeneralRe: Why Event is not firing for an ASP.NET Button?? Pin
eggsovereasy22-Jun-06 7:48
eggsovereasy22-Jun-06 7:48 
GeneralRe: Why Event is not firing for an ASP.NET Button?? Pin
SIJUTHOMASP22-Jun-06 8:10
professionalSIJUTHOMASP22-Jun-06 8:10 
GeneralRe: Why Event is not firing for an ASP.NET Button?? Pin
mayurmanu@hotmail.com22-Jun-06 20:16
mayurmanu@hotmail.com22-Jun-06 20:16 
AnswerRe: Why Event is not firing for an ASP.NET Button?? Pin
Nagraj Naik22-Jun-06 20:29
Nagraj Naik22-Jun-06 20:29 
QuestionGridView.Columns Pin
eggsovereasy22-Jun-06 5:57
eggsovereasy22-Jun-06 5:57 
AnswerRe: GridView.Columns Pin
Mike Ellison22-Jun-06 7:30
Mike Ellison22-Jun-06 7:30 
GeneralRe: GridView.Columns Pin
eggsovereasy22-Jun-06 7:46
eggsovereasy22-Jun-06 7:46 
GeneralRe: GridView.Columns Pin
Mike Ellison22-Jun-06 8:42
Mike Ellison22-Jun-06 8:42 
GeneralBrilliant! Pin
eggsovereasy22-Jun-06 9:30
eggsovereasy22-Jun-06 9:30 
GeneralRe: Brilliant! Pin
Mike Ellison22-Jun-06 10:20
Mike Ellison22-Jun-06 10:20 
QuestionAdding DataRow in DataTable Pin
peshawarcoder22-Jun-06 5:08
peshawarcoder22-Jun-06 5:08 
AnswerRe: Adding DataRow in DataTable Pin
Paddy Boyd22-Jun-06 5:52
Paddy Boyd22-Jun-06 5:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.