Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Populating treeview with 1 million nodes in asp.net1.1

Populating treeview with 1 million nodes in asp.net1.1

Scheduled Pinned Locked Moved Visual Basic
csharpasp-netquestion
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kapil Thakur
    wrote on last edited by
    #1

    Hi , I want to populate a treeview with 1 million nodes. How can i do that while maintaining the efficiency of the web page. i want to achieve this in asp.net 1.1 though i have the option of working in asp.net 2.0 but i m not familiar with that. suggestions for asp.net 2.0 are also welcome. thanks & regards Kapil Thakur

    D D J T 4 Replies Last reply
    0
    • K Kapil Thakur

      Hi , I want to populate a treeview with 1 million nodes. How can i do that while maintaining the efficiency of the web page. i want to achieve this in asp.net 1.1 though i have the option of working in asp.net 2.0 but i m not familiar with that. suggestions for asp.net 2.0 are also welcome. thanks & regards Kapil Thakur

      D Offline
      D Offline
      Dave Sexton
      wrote on last edited by
      #2

      Kapil Thakur wrote:

      How can i do that while maintaining the efficiency of the web page.

      You can't. Your page will still load exceptionally slowly even on a DSL line. That is if the treeview control will even support that many nodes (I seriously doubt that it supports more than +/- 32 thousand). You should rather think of another solution.

      K 1 Reply Last reply
      0
      • K Kapil Thakur

        Hi , I want to populate a treeview with 1 million nodes. How can i do that while maintaining the efficiency of the web page. i want to achieve this in asp.net 1.1 though i have the option of working in asp.net 2.0 but i m not familiar with that. suggestions for asp.net 2.0 are also welcome. thanks & regards Kapil Thakur

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        There is no way to do that. Even if you could add that many node (I think the limit is 65,535), the TreeView wouldn't be usable until the entire tree is loaded. With 1 million nodes, that would take a LONG time, even over a 10Mb/sec connection.

        Dave Kreskowiak Microsoft MVP - Visual Basic

        1 Reply Last reply
        0
        • K Kapil Thakur

          Hi , I want to populate a treeview with 1 million nodes. How can i do that while maintaining the efficiency of the web page. i want to achieve this in asp.net 1.1 though i have the option of working in asp.net 2.0 but i m not familiar with that. suggestions for asp.net 2.0 are also welcome. thanks & regards Kapil Thakur

          J Offline
          J Offline
          jsampsonPC
          wrote on last edited by
          #4

          As the previous two members stated, this is unrealistic. What exactly are you trying to accomplish with your application? Perhaps we can suggest a more efficient working-model to solve your problem. On the other hand. You might be able to use a TreeView. You would need to AutoPostBack based upon which nodes are clicked, and then generate childNodes for those upon Page Load. This way, you never have 1,000,000 nodes on a single page, but instead potentially just a few hundred. Either way, you should tell us what it is you're trying to accomplish, and not how you wish to do so :)

          Jonathan Sampson www.SampsonResume.com

          1 Reply Last reply
          0
          • D Dave Sexton

            Kapil Thakur wrote:

            How can i do that while maintaining the efficiency of the web page.

            You can't. Your page will still load exceptionally slowly even on a DSL line. That is if the treeview control will even support that many nodes (I seriously doubt that it supports more than +/- 32 thousand). You should rather think of another solution.

            K Offline
            K Offline
            Kapil Thakur
            wrote on last edited by
            #5

            hi, thanks for the reply. i knew that loading such a tree is impossible. however is there any way by which i can implement the previous & next methods like paging in datagrid. that is, on demand i can load a certain number of nodes and then get options like previous and next links. on clicking them, i will load next number of nodes. can that be achieved? thanks & regards, Kapil Thakur

            1 Reply Last reply
            0
            • K Kapil Thakur

              Hi , I want to populate a treeview with 1 million nodes. How can i do that while maintaining the efficiency of the web page. i want to achieve this in asp.net 1.1 though i have the option of working in asp.net 2.0 but i m not familiar with that. suggestions for asp.net 2.0 are also welcome. thanks & regards Kapil Thakur

              T Offline
              T Offline
              Taylor Kobani
              wrote on last edited by
              #6

              as a treeview nodes have indexes in integer you can not make nodes more than integer maximum amount. try xml files to make a tree-shaped output.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups