473,804 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Master page & treeview opp AJAX ?

Ciao a tutti

ho una master page costituita da due sezioni, a sinistra carico ondemand un
asp.net treeview impostando programmaticame nte la proprietà NavigateUrl, a
destra carico le content page legate ai nodi del treeview.
Il problema è che quando richiamo una content page clicando sul nodo del
treevieew, il treeview, giustamente, non mantiene lo stato.

Tra le varie soluzioni che mi vengono in mente ci sarebbero :
1) memorizzare in un oggetto session la profondita del treeview, quindi
ricaricare il nodo selezionato.
Dubbio : ricaricare un nodo esplorando i livelli non mi sembra una
soluzione ottimale in quanto l'albero potrebbe essere molto profondo
2) caricare la pagina content in un IFrame
Dubbio : è possibile passare dei parametri in querystring tramite IFrame
? E' possibile modificare a runtime la proprietà src dopo aver
impostato runat="server" al controllo ?
3) Con AJAX la cosa è fattibile ??

Avete qualche suggerimento da darmi ??

Grazie

Jan 29 '07 #1
3 2249
OPPS

Sorry
I views wrong newsgroup
"Vincenzo Milazzo" <vi************ **@gmail.comwro te in message
news:33******** *************** ***********@mic rosoft.com...
Ciao a tutti

ho una master page costituita da due sezioni, a sinistra carico ondemand
un asp.net treeview impostando programmaticame nte la proprietà
NavigateUrl, a destra carico le content page legate ai nodi del treeview.
Il problema è che quando richiamo una content page clicando sul nodo del
treevieew, il treeview, giustamente, non mantiene lo stato.

Tra le varie soluzioni che mi vengono in mente ci sarebbero :
1) memorizzare in un oggetto session la profondita del treeview, quindi
ricaricare il nodo selezionato.
Dubbio : ricaricare un nodo esplorando i livelli non mi sembra una
soluzione ottimale in quanto l'albero potrebbe essere molto profondo
2) caricare la pagina content in un IFrame
Dubbio : è possibile passare dei parametri in querystring tramite
IFrame ? E' possibile modificare a runtime la proprietà src dopo aver
impostato runat="server" al controllo ?
3) Con AJAX la cosa è fattibile ??

Avete qualche suggerimento da darmi ??

Grazie
Jan 29 '07 #2
hi
:)
what is your nationality my friend ?
i think you are italian

Jan 29 '07 #3
Yes I'm from Italy
<mi********@gma il.comwrote in message
news:11******** **************@ q2g2000cwa.goog legroups.com...
hi
:)
what is your nationality my friend ?
i think you are italian
Jan 30 '07 #4

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

Similar topics

5
3118
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
0
1174
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.
0
1721
by: damiensawyer | last post by:
Hello all, I'm very new to all of this. I have a theme and a skin (the standard ones). I have a standard master page which is holding a custom ascx which has a treeview in it. Can someone please point me in the right direction to bind a theme to the treeview? The 'theme' tag is on the <%@ page %> directive... however neither my master page or ASCX files use this. They use <%Master%> and
2
1785
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.
5
3482
by: Vincent A. | last post by:
Hello, I'm developping an asp.net application which used master page on which i add several web control. One of the them is a menu control which as several button in order to develop each sub menu. When i click on this button it rises a postback and refresh all my controls. My question is the following : is it possible the postback acts only on one web control ? Thanks in advance
5
1555
by: igotyourdotnet | last post by:
I have a treeview menu on my master page, When I click a menu option the page "flickers" and loads the content section. is it possible to add atlas somehow to stop the flickering when I make a menu selection and load the content section? If so how?
1
2420
by: Samuel | last post by:
Hi, I have ASP.NET user control that implements ICallbackEventHandler. Partial postback works perfectly when I put control on a regular webform. But when I put it on page that has master page control doesn't work. I'm getting following error :"The target <namefor the callback could not be found or did not implement ICallbackEventHandler." It's error like when control didn't implement ICallbackEventHandler, but
1
7560
by: =?Utf-8?B?TGFycnkgRXBu?= | last post by:
I have an app using Ajax. The scriptmanager is within the form that is within the master page. I also have web user controls that are doing partial rendering and are "borrowing" or "inheriting" the scriptmanager from the master page. Heck, when they're rendered, the scriptmanager is on all the pages and it works. However, in the VS2005 designer, I constantly see "Can't render image" errors, and it's nearly impossible to effectively use...
1
4892
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...
0
10604
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, 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...
0
10356
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...
0
10103
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...
1
7644
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6874
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();...
0
5536
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...
0
5676
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4316
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
3839
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.