473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Prevent treeview control from reinitialising on master page for page redirects

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
2 1767
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
Thanks Andrew - That did the trick perfectly.

Nice solution :-)

Feb 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: christof | last post by:
It'll be really easy...Sorry for that question: I've got a MasterPage <%@ Master Language="C#" ClassName="MasterP" %> and some slave.aspx.<%@ Page Language="C#" MasterPageFile="~/Master1.master"...
5
by: Juanjo | last post by:
I need to know how to maintain de status (nodes expanded and selected) of a treeview in a master page. I have a master page with a treeview. I have a default page, when the treeview is expanded...
10
by: p3t3r | last post by:
I have a treeview sourced from a SiteMap. I want to use 2 different CSS styles for the root level nodes. The topmost root node should not have a top border, all the other root nodes should have a...
0
by: Greg | last post by:
Hi, I'm trying to use the TreeView control in .NET 2.0 along with master pages and have encountered a problem. I have a master page for my site... pretty standard... on that page I have my...
0
by: apenly | last post by:
Hi all- I'm trying to Render a TreeView in a custom control, but I'm receiving a NullReferenceException at runtime. If I put the TreeView on the page it works fine, but as soon as I try to...
1
by: Rick | last post by:
Hi guys! I have a problem with a master page that has a treeview control as menu, i have a root node, 5 parents and each parent has 10 leafs, 50 pages in total, each page is linked to master...
1
by: Nikron | last post by:
Hi, I'm having an issue with the ASP.NET 2.0 Treeview control and persisting its' state accross requests. My Control is embedded within a master page and is used for site navigation. My problem...
0
by: =?Utf-8?B?REc3OA==?= | last post by:
Hello, I have a question about the catalog of an E-commerce website I am doing. A page Catalog.aspx uses a MasterPage (MasterPage.master). Two UserControls (DepartmentsList.ascx and...
0
by: vingomail | last post by:
Good Morning, I have two site map: "common.sitemap, loginuser.sitemap", two master page:" common.master, loginuser.master", in common.master, there is a Navigation control: TreeView...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.