By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,417 Members | 1,856 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,417 IT Pros & Developers. It's quick & easy.

Prevent treeview control from reinitialising on master page for page redirects

P: n/a
Hello all,

I'm wondering if someone can help me with an issue.

I have a master page that has a treeview control on it (inside an ascx
file).

Also on the master page I have a content placeholder which contains the
various pages of my application. I wish to have the treeview control
displayed at all times during the application.

ASP.Net 2 is great at maintaining the 'expanded/collapsed' nodes of the
treeview as you click the various nodes on it. The problem is however,
when the application does a response.redirect("../someurl.aspx") the
master page takes this as a new page and resets the treeview control.

Can someone please tell me if there is a way to preserve the expansion
state of the control when they load new pages?

Thanks very much in advance,
Damien Sawyer

Feb 13 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Damien,

I have a solution to this in my blog:

http://blog.binaryocean.com/PermaLin...c8da35636.aspx

Hope this helps,

--

Andrew Robinson
http://blog.binaryocean.com
<da**********@yahoo.com.au> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Hello all,

I'm wondering if someone can help me with an issue.

I have a master page that has a treeview control on it (inside an ascx
file).

Also on the master page I have a content placeholder which contains the
various pages of my application. I wish to have the treeview control
displayed at all times during the application.

ASP.Net 2 is great at maintaining the 'expanded/collapsed' nodes of the
treeview as you click the various nodes on it. The problem is however,
when the application does a response.redirect("../someurl.aspx") the
master page takes this as a new page and resets the treeview control.

Can someone please tell me if there is a way to preserve the expansion
state of the control when they load new pages?

Thanks very much in advance,
Damien Sawyer

Feb 13 '06 #2

P: n/a
Thanks Andrew - That did the trick perfectly.

Nice solution :-)

Feb 13 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.