Not sure how to go about doing this:
I have for example, 4 pages. p1.aspx , p2.aspx,p3.aspx, p4.aspx. I also have a Master page. On the master page, i have images on top and a leftside "div" reserved for my treeview that should be displayed only in p4.aspx. *** So, I bind the data to the treeview (from database)..only in p4.aspx.
So far so good...
Now, I added p5.aspx. (i will add at least 20 pages for each node of the treeview). Made p5.aspx as having the master page as well. *** But for the treeview to be displayed , i need to bind/call DB in p5.aspx as well.
I thought if i bind it once and have the treeview in Master page, it would stick :) I guess not. This means, i will have to bind/call DB 20 something times ...each time a node is clicked. Not good.
*** I moved the binding code to the Master page but that gets called each time a node is clicked. I put it in "not pageispost back" , outside it ...but no.
**How can I avoid keep-binding this treeview?? Once it's built in p4.aspx, i want it to stick for all pages.