Categories: Blog

The Problem with TreeViews

I continue to receive e-mails from developers wondering how to fix an irritating problem with TreeView controls bound to site maps: namely, how to preserve the state of the TreeView as a user clicks around the site.

The solution is documented in my latest Wicked Code column in MSDN Magazine. My solution involves recording the state of the TreeView in session state and using that information to make the next TreeView look like the last. To mitigate the problem of the increased number of postbacks, you can use an Atlas UpdatePanel control. Check it out if you’re using TreeViews to render navigational UIs and have run into this problem yourself.

Jeff Prosise

Recent Posts

8-Step AWS to Microsoft Azure Migration Strategy

Microsoft Azure and Amazon Web Services (AWS) are two of the most popular cloud platforms.…

2 weeks ago

How to Navigate Azure Governance

 Cloud management is difficult to do manually, especially if you work with multiple cloud…

4 weeks ago

Why Azure’s Scalability is Your Key to Business Growth & Efficiency

Azure’s scalable infrastructure is often cited as one of the primary reasons why it's the…

1 month ago

Unlocking the Power of AI in your Software Development Life Cycle (SDLC)

https://www.youtube.com/watch?v=wDzCN0d8SeA Watch our "Unlocking the Power of AI in your Software Development Life Cycle (SDLC)"…

2 months ago

The Role of FinOps in Accelerating Business Innovation

FinOps is a strategic approach to managing cloud costs. It combines financial management best practices…

2 months ago

Azure Kubernetes Security Best Practices

Using Kubernetes with Azure combines the power of Kubernetes container orchestration and the cloud capabilities…

2 months ago