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.redire ct("../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 2 1782
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**********@y ahoo.com.au> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.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.redire ct("../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
Thanks Andrew - That did the trick perfectly.
Nice solution :-) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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" AutoEventWireup="true"
CodeFile="ShowDatabases.aspx.cs" Inherits="ShowDatabases"
Title="Untitled Page" %><%@ MasterType VirtualPath="Master1.master" %>
In the slave page I'm creting and populating a TreeView which I would
like to pass to my...
|
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 and a node is selected then redirects to a another page
Response.Redirect("Page2.aspx")
And run's ok, but the treeview in this page is colapsed. The treeview
maintain its aspect, the images for the nodes, etc, but is colapsed and
|
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 top border.
Is it possible to have more than 1 style at the same level (parent node)
when using a SiteMap?
I want it to appear something like this and I can only find a way to either
have the border on all root nodes or none at all. In...
|
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 treeview wrapped inside a <FORM> because it is required that
reads from a .sitemap file.
However - on one of my pages I want to have a contact form... but I can
only have 1 form on a page. On my other pages I do not want to have a
contact form.
|
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 render it within my control it
crashes and burns. I've even tried placing it within another control
(a PlaceHolder) and tried to render the PlaceHolder to no avail. Any
ideas on how to fix this problem?
Here's my code:
| |
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 page, when i select a node in treeview
it redirects to N page, its ok, but i want each time i select a page in the
treeview it expand the tree to current node selected, i can't do it, each
time i select a node, treeview appears as originally i...
|
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 is that the user wants to
know which page they are currently on and therefore I need to highlight
the selected node. The problem is I lose state whenever the user selects
a node and is redirected to another page.
Thanks in advance
|
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 ProductsList.ascx) 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.
|
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
TreeView--- Sitemapdatasource---common.sitemap
in Loginuser.master, there is another Navigation control: TreeView
TreeView---sitemapdatasource---loginuser.sitemap
|
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...
|
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,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
|
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
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |