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. C / C++ / MFC
  4. C# ASP.NET TreeView control

C# ASP.NET TreeView control

Scheduled Pinned Locked Moved C / C++ / MFC
csharpasp-netsysadmintutorialquestion
3 Posts 2 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.
  • R Offline
    R Offline
    RalfPeter
    wrote on last edited by
    #1

    Hi all, I am trying to find out how to check the 'check' state of a node in a TreeView control using C# in an ASP.NET application. Basically, I have a TreeView control that shows checkboxes. The user makes a selection which I want to store in a session variable upon a 'submit' button click. I use a 'TreeView.Node.Checked' statement to verify whether the user selected that node. This, however, does not work because the selection is made at the client side and when it gets posted to the server, the 'TreeView.Node.Checked' statement, whether selected or not, will always return 'false' for any node. Does anyone have a solution for this? Thx, Ralf

    ralf.riedel@usm.edu

    H 1 Reply Last reply
    0
    • R RalfPeter

      Hi all, I am trying to find out how to check the 'check' state of a node in a TreeView control using C# in an ASP.NET application. Basically, I have a TreeView control that shows checkboxes. The user makes a selection which I want to store in a session variable upon a 'submit' button click. I use a 'TreeView.Node.Checked' statement to verify whether the user selected that node. This, however, does not work because the selection is made at the client side and when it gets posted to the server, the 'TreeView.Node.Checked' statement, whether selected or not, will always return 'false' for any node. Does anyone have a solution for this? Thx, Ralf

      ralf.riedel@usm.edu

      H Offline
      H Offline
      Hans Dietrich
      wrote on last edited by
      #2

      I'm guessing you will get a better answer in the ASP.Net forum: http://www.codeproject.com/script/Answers/List.aspx?tab=active&tags=85[^]

      Best wishes, Hans


      [Hans Dietrich Software]

      R 1 Reply Last reply
      0
      • H Hans Dietrich

        I'm guessing you will get a better answer in the ASP.Net forum: http://www.codeproject.com/script/Answers/List.aspx?tab=active&tags=85[^]

        Best wishes, Hans


        [Hans Dietrich Software]

        R Offline
        R Offline
        RalfPeter
        wrote on last edited by
        #3

        Will do. Thx, Ralf

        ralf.riedel@usm.edu

        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