473,778 Members | 1,852 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to prevent a TreeView to lose its expanded/collapsed state as

Hello,

I have a question about the catalog of an E-commerce website I am doing.
A page Catalog.aspx uses a MasterPage (MasterPage.mas ter).
Two UserControls (DepartmentsLis t.ascx and ProductsList.as cx) are in two
Content sections of Catalog.aspx.

DepartmentsList .ascx contains a TreeView that is populated on demand from a
database.
The NavigateUrl property of each node of the TreeView is set on demand.
A click on a node redirects the user to a new page that contains the
appropriate data in the UserControl ProductsList.as cx. .
The problem is that the entire TreeView in DepartmentsList .ascx collapses.
What to do to avoid that? Should I use AJAX? Could you please show me an
example?

Thanks in advance

Nov 27 '07 #1
0 1010

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

Similar topics

7
8424
by: (Pete Cresswell) | last post by:
I've got KeyDown coding and it fires when other keys are pressed, but when Enter is pressed, nothing. I'd like to support the (standard?) Windows behavior of executing DblClick processing when an item is selected and the user presses Enter I got focus to stop moving to the next control via Tools|Options|Keyboard|Move after enter....but now it just sits there and neither KeyDown nor KeyPress seems to catch it.
6
20067
by: Brian Smith | last post by:
Is there a way to avoid the default action of TreeNode expansion/contraction caused by double click? I can add an event handler to pop up my properties dialog on double click, but it has the unintended side-effect of toggling the expansion of that subtree. Thanks in advance, Brian
1
2344
by: Edwin Knoppert | last post by:
I'm using a simple treeview for helpsystem. The treeview is on a masterpage, right beside it it has the container. The user uses the treeview to navigate to helppages using this masterpage. But on each page load the treeview nodes are collapsed to original state. 1) I want to maintain the nodes expanded state. 2) I would like to select the node when the node is clicked which results in a page reload. This should re-select the node with...
0
1431
by: Edwin Knoppert | last post by:
I'm using a simple treeview for helpsystem. The treeview is on a masterpage, right beside it it has the container. The user uses the treeview to navigate to helppages using this masterpage. But on each page load the treeview nodes are collapsed to original state. 1) I want to maintain the nodes expanded state. 2) I would like to select the node when the node is clicked which results in a page reload. This should re-select the node with...
2
1783
by: damiensawyer | last post by:
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.
6
3224
by: =?Utf-8?B?ZHNoZW1lc2g=?= | last post by:
Hello, I have a windows form with a TreeView control. When I first open the tree all nodes are colapsed. Then, I expand some of them and close the form. When I call Form.showDialog() once again all nodes are collapsed again. I would like the layout to be saved (nodes which I expanded should stay expanded). I don't change the ImageList, Scrollable, CheckBoxes or StateImageList properties of the control between closing and reopening the...
1
4889
by: =?Utf-8?B?QnJpYW4=?= | last post by:
I have a master page that contains a simple treeview populated using a SiteMapDataSource so the data is static. Here is my problem. When I expand the menu to show the 2nd level treeview items and then click on one to move to the selected page, when the new page is displayed the treeview has reverted back to it's original non-expanded state. What is the best way to maintain the expanded/collapsed state of the master page treeview while...
1
2173
by: Mike | last post by:
Here is my scenario. I just took over an existing asp site that is using a treeview menu on the pages. The treeview is an include file that is an include that is on every page. The issue is, when the user clicks on a menu option it opens a new page (menu is still there) and the menu is collapsed. example: menu looks something like this Menu1 Menu2
0
1927
by: ton | last post by:
Hi, In my website the treeview is placed in the update panel of AJAX. Clicking on the nodes, the server side code is getting the childnotes and shows the details on the right site of the treeview. just like an normal exploere would do. After clicking on several nodes, I'll got deeper in the tree and after a while, the right site shows the correct information, but the tree is collapsed on a arbitrairy node. I can't figure out whats...
0
9629
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9465
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10127
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10068
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9923
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8954
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5370
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4031
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3627
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.