Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 439581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:47:20+00:00 2026-05-12T20:47:20+00:00

From a TreeView, I get this XML serialized: <?xml version=1.0 encoding=utf-16?><node text=&lt;span id=’c6f5ab9e-d08f-448a-9143-02d174317c07′ oncontextmenu=&quot;SetContextMenu(this.id,

  • 0

From a TreeView, I get this XML serialized:

<?xml version="1.0" encoding="utf-16"?><node text="&lt;span id='c6f5ab9e-d08f-448a-9143-02d174317c07' oncontextmenu=&quot;SetContextMenu(this.id, event);return false;&quot; &gt;Zürich&lt;/span&gt;" value="c6f5ab9e-d08f-448a-9143-02d174317c07" navigateurl="" populateondemand="False" showcheckbox="false" checked="False" expanded="True" selected="False">  <node text="&lt;span id='f28df8d9-f83f-494c-a88e-591c7266c455' oncontextmenu=&quot;SetContextMenu(this.id, event);return false;&quot; &gt;Gebäude 1&lt;/span&gt;" value="f28df8d9-f83f-494c-a88e-591c7266c455" navigateurl="" populateondemand="False" showcheckbox="false" checked="False" expanded="True" selected="False">    <node text="&lt;span id='e8cd5ca3-e25c-4900-b49e-53a5a6b0f19a' oncontextmenu=&quot;SetContextMenu(this.id, event);return false;&quot; &gt;Etage 1&lt;/span&gt;" value="e8cd5ca3-e25c-4900-b49e-53a5a6b0f19a" navigateurl="" populateondemand="False" showcheckbox="false" checked="False" expanded="True" selected="False">      <node text="&lt;span id='31360723-0be2-47e5-814c-4837c174c9a1' oncontextmenu=&quot;SetContextMenu(this.id, event);return false;&quot; &gt;Raum 203&lt;/span&gt;" value="31360723-0be2-47e5-814c-4837c174c9a1" navigateurl="javascript:SetUrl('./raumplaner.aspx?raum=31360723-0be2-47e5-814c-4837c174c9a1');" populateondemand="False" showcheckbox="false" checked="False" expanded="True" selected="False" />      <node text="&lt;span id='5accd32f-7a85-46de-99a3-0853843b4e99' oncontextmenu=&quot;SetContextMenu(this.id, event);return false;&quot; &gt;Raum 211&lt;/span&gt;" value="5accd32f-7a85-46de-99a3-0853843b4e99" navigateurl="javascript:SetUrl('./raumplaner.aspx?raum=5accd32f-7a85-46de-99a3-0853843b4e99');" populateondemand="False" showcheckbox="false" checked="False" expanded="True" selected="False" />      <node text="&lt;span id='67774365-233b-4176-93f4-65c4e4953daa' oncontextmenu=&quot;SetContextMenu(this.id, event);return false;&quot; &gt;Raum 511&lt;/span&gt;" value="67774365-233b-4176-93f4-65c4e4953daa" navigateurl="javascript:SetUrl('./raumplaner.aspx?raum=67774365-233b-4176-93f4-65c4e4953daa');" populateondemand="False" showcheckbox="false" checked="False" expanded="True" selected="False" />      <node text="&lt;span id='ea86389f-b6ef-433e-97da-e3395f216ee5' oncontextmenu=&quot;SetContextMenu(this.id, event);return false;&quot; &gt;Raum 4&lt;/span&gt;" value="ea86389f-b6ef-433e-97da-e3395f216ee5" navigateurl="javascript:SetUrl('./raumplaner.aspx?raum=ea86389f-b6ef-433e-97da-e3395f216ee5');" populateondemand="False" showcheckbox="false" checked="False" expanded="True" selected="False" />    </node>  </node></node>

Now I want to read all the nodes into a gridview
So I use a XMLdatasource, point it to the XML file, and have it bind data to the gridview.

The problem is, because it’s a navigation structure with folders and subfolders, containing items, it only loads the first folder, and nothing else.

The gridview: `

            <asp:GridView ID="GridView1" DataSourceID="xmldsDefaultMenu" runat="server" AutoGenerateColumns="false">
     <Columns>
            <asp:BoundField ReadOnly="True" 
              HeaderText="Name" 
              InsertVisible="False" 
              DataField="text" 
              SortExpression="ProductID">
            </asp:BoundField>

            <asp:BoundField HeaderText="ID" 
              DataField="value" 
              SortExpression="ProductName">
            </asp:BoundField>

            <asp:BoundField HeaderText="URL" 
                DataField="navigateurl" 
                SortExpression="QuantityPerUnit">
            </asp:BoundField>
        </Columns>        
    </asp:GridView>
`

The treeview:

            <asp:TreeView ID="TreeView1" Runat="server" DataSourceID="XmlDataSource1" ImageSet="Arrows" >
                <HoverNodeStyle    BackColor="#D7E8F3" BorderColor="#A7B4CE" Font-Underline="false" />
                <SelectedNodeStyle ForeColor="#FF0000" BackColor="#FAF3F4" BorderColor="#A7B4CE" Font-Underline="False" HorizontalPadding="0px" VerticalPadding="0px" />

                <DataBindings>
                     <asp:TreeNodeBinding DataMember="node" TextField="text" ValueField="value" PopulateOnDemand="false" NavigateUrlField="navigateurl" >
                    </asp:TreeNodeBinding>
                </DataBindings>
            </asp:TreeView>   
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T20:47:20+00:00Added an answer on May 12, 2026 at 8:47 pm

    Oh, solved:

            Dim oDataSet As System.Data.DataSet = New System.Data.DataSet
        oDataSet.ReadXml("C:\inetpub\wwwroot\rmplnr\SavedMenu\Start.xml")
        Me.GridView1.DataSource = oDataSet
        Me.GridView1.DataBind()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a treeview control on an aspx page. The data comes from database
From time to time I get a System.Threading.ThreadStateException when attempting to restart a thread.
From what I can gather, there are three categories: Never use GET and use
I am trying to get value from an HTML list <div id=test> <ul> <li>C:\
From a web developer point of view, what changes are expected in the development
From a desktop application developer point of view, is there any difference between developing
From what I've read, VS 2008 SP1 and Team Foundation Server SP1 packages are
From time to time I see an enum like the following: [Flags] public enum
From what information I could find, they both solve the same problems - more
From the Immediate Window in Visual Studio: > Path.Combine(@C:\x, y) C:\\x\\y > Path.Combine(@C:\x, @\y)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.