treview does not maintain state

Discussion in 'ASP .Net Web Controls' started by AR, May 8, 2006.

  1. AR

    AR Guest

    I am new to ASP.NET so please bear with me....

    I have a treeview in which the nodes are populated from a database. When i
    click on a node, some data is populated in the browser but as the page
    refreshes the treeview collapes into its un-expanded state - is there any
    way i can get the treeview to remember which nodes were expanded and retain
    this view after the page refresh ? At the moment, i am not doing anything in
    the page load event, but i guess that i need to do something ...

    thanks

    AR
     
    AR, May 8, 2006
    #1
    1. Advertising

  2. AR

    Prakash V Guest

    Put if (!IsPostBack) in pageload before where you load the tree

    Regards,
    Prakash.V


    "AR" <aslam.riazATbaesystemsDOTcom> wrote in message
    news:445f5744$...
    >I am new to ASP.NET so please bear with me....
    >
    > I have a treeview in which the nodes are populated from a database. When i
    > click on a node, some data is populated in the browser but as the page
    > refreshes the treeview collapes into its un-expanded state - is there any
    > way i can get the treeview to remember which nodes were expanded and
    > retain this view after the page refresh ? At the moment, i am not doing
    > anything in the page load event, but i guess that i need to do something
    > ...
    >
    > thanks
    >
    > AR
    >
     
    Prakash V, Jun 7, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. chak
    Replies:
    1
    Views:
    600
  2. Bruno Ferreira
    Replies:
    0
    Views:
    469
    Bruno Ferreira
    Nov 6, 2003
  3. binaryjesus
    Replies:
    1
    Views:
    393
    binaryjesus
    Jul 29, 2008
  4. Vinki
    Replies:
    2
    Views:
    344
    Patrice
    Dec 23, 2009
  5. chak

    Listbox on placeholder does not maintain state ?

    chak, Aug 15, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    302
Loading...

Share This Page