Tree View in ASP.NET

Last post 07-04-2008 3:56 AM by Amanda Wang - MSFT. 2 replies.

Sort Posts:

  • Tree View in ASP.NET

    07-02-2008, 6:09 AM
    • Member
      point Member
    • rpreethi
    • Member since 07-02-2008, 9:29 AM
    • Posts 2

     Hi

    I had designed one tree view(parent and child).in ASP.NET
    In the first load it will display the parent in the tree view.
    while i click the parent in the tree, it will display the child.
    If i do something in the child form, itz again loading the page and it will show only the parent in the tree view
    my problem is :itz not showing the parent and child

     sorry for my English

     Thanks in Advance


     

     

  • Re: Tree View in ASP.NET

    07-02-2008, 7:10 AM
    • Member
      26 point Member
    • rickardn
    • Member since 04-17-2008, 8:20 PM
    • Sweden
    • Posts 3

    I don't fully understand what your scenario is. I assume that the child form you talk about is a part of the same page as the TreeView control. However, the only reason for what you describe to happen is if you are doing a redirection in the child form. If you do a normal postback the TreeView control should stay expanded, whether you have ViewState activated or not.

    If I haven't answered your question please elaborate on your problem.

    /Rickard Nilsson, MCPD
    http://www.rickardnilsson.net

    Best regards
    Rickard Nilsson
    http://rickardnilsson.net
    Filed under:
  • Re: Tree View in ASP.NET

    07-04-2008, 3:56 AM
    Answer

    Hi,

    rpreethi:
    If i do something in the child form, itz again loading the page and it will show only the parent in the tree view
    my problem is :itz not showing the parent and child

    Did you place the treeview is a single page?

    I would suggest that you can create a master page and place the treeivew on the master page, then make all the page refer the master page, then you can see the treeview on the any page.

    About the master page, you can refer this link: http://www.odetocode.com/Articles/419.aspx

    If I misunderstand you, please let me know.

    Amanda Wang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (3 items)