Treeview using javasript and xml

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sreedevipd
    New Member
    • Oct 2007
    • 12

    Treeview using javasript and xml

    Hi all,

    I need to create a treeview using javascript and xml ...i am stuck with the same issue ..can anybody help...


    I am using C#Asp.net

    Thanks in Advance
    sridevi
  • Mr Gray
    New Member
    • Apr 2008
    • 47

    #2
    if you are using c# how do you want to use xml and javascript? Do you want to populate and bind the treeview to the xml and do some client side javascript?

    Please explain what you actually want to achieve.

    Comment

    • sreedevipd
      New Member
      • Oct 2007
      • 12

      #3
      I need to populate treeview using javascript..... ..

      Comment

      • Mr Gray
        New Member
        • Apr 2008
        • 47

        #4
        Have you asked this on the Javascript/AJAX forum you may get a better response?

        Comment

        • Frinavale
          Recognized Expert Expert
          • Oct 2006
          • 9749

          #5
          Originally posted by sreedevipd
          I need to populate treeview using javascript..... ..
          Seeing as the TreeView is a .NET control, it would be very difficult to populate it using JavaScript. Your .NET code exists on the server...that means it is used on the server only. Your JavaScript code is run in on the client's side....in the browser.

          Mr Gray has rightly suggested that you use Ajax to solve your problem. Ajax allows you to make Server Side calls once the page is loaded.

          I would be questioning why you need to do this?
          Why can't you just load the TreeView in your server side code and let it run as is once the page is rendered in the browser?

          -Frinny

          Comment

          Working...