title: Asp.net - Create html from server vs using json
body: <p>My question is regardign performance of the web page. I need to create a treeview which will display large data (10,000) nodes. The way asp.net reeeview renders itself it not good for performance as it uses Table tag. I created a custom control to make a treeview using div and spans. I can do that by 2 methods:</p>
  
  <ol>
  <li><p>Create a custom control where i will override the render and put my own html which will get on the page. This will have performance impact when connection speed is slow. But other i guess the performance will be godd as the browser will just render it. No JS to run.</p></li>
  <li><p>Create a json object and render it on page (in which case, page size would be lesser then the above page). But IE6-8 do not support javascript hardware accelerator and thus would take time to run the js to make the object.</p></li>
  </ol>
  
  <p>So my question is which one would be better?? My users have 3 mbps speed and thus speed does not matter as such. </p>