|
 |
aspdotnet_website_programming thread: Is it possible to maintain treeview state?
Message #1 by "jiang tang" <jtang63@y...> on Wed, 28 Aug 2002 22:13:29
|
|
I have searched the Internet for this very simple question to no avail.
I have a treeview on a aspx page, and the node's NavigateURL is pointing
to anther web page; after viewing that page I return to the aspx page with
the treeview. The problem is that the treeview returned to its original
un-expanded state. Is it possible to have the treeview stay at the last
state?
(setting the AutoPostBack and EnableViewState to true has no effect)
Any help is highly appreciated.
Message #2 by "Lewis" <lewis@t...> on Wed, 28 Aug 2002 15:36:36 -0600
|
|
This is a longshot - You mentioned setting the autopostback value - but did
you ever check it in your pageload event?
everytime the page comes to the server the pageload event runs again, so is
your form just being recreated?
hope it helps!
-----Original Message-----
From: jiang tang [mailto:jtang63@y...]
Sent: Wednesday, August 28, 2002 10:13 PM
To: Website Programming with ASP.NET
Subject: [aspdotnet_website_programming] Is it possible to maintain
treeview state?
I have searched the Internet for this very simple question to no avail.
I have a treeview on a aspx page, and the node's NavigateURL is pointing
to anther web page; after viewing that page I return to the aspx page with
the treeview. The problem is that the treeview returned to its original
un-expanded state. Is it possible to have the treeview stay at the last
state?
(setting the AutoPostBack and EnableViewState to true has no effect)
Any help is highly appreciated.
Message #3 by "Mike Gale" <info@d...> on Thu, 29 Aug 2002 09:28:44 +1200
|
|
There is a newsgroup specifically for this type of question
At msnews.microsoft.com (news not http)
It is
microsoft.public....aspnet.webcontrols
Mike Gale, Decision Engineering (NZ) Ltd.
>I have a treeview on a aspx page, and the node's NavigateURL is
pointing
Message #4 by "jiang tang" <jtang63@y...> on Thu, 29 Aug 2002 23:03:41
|
|
As a common programming practice I did check IsPostBack, but click a link
doesn't fire the postback at all. Anyway, I have to use a IFrame and put
Javascript in the NavigateURL to make the treeview stay what it was and
load the page in the IFrame; It works pretty well.
I can provide code snippet if anybody interested in implementing this
navigation scheme.
JT
> This is a longshot - You mentioned setting the autopostback value - but
did
you ever check it in your pageload event?
everytime the page comes to the server the pageload event runs again, so is
your form just being recreated?
hope it helps!
Message #5 by "Pravin" <pravin@s...> on Fri, 30 Aug 2002 10:05:56 +1200
|
|
I would be interested in the code.
Thanks.
----- Original Message -----
From: "jiang tang" <jtang63@y...>
To: "Website Programming with ASP.NET"
<aspdotnet_website_programming@p...>
Sent: Thursday, August 29, 2002 11:03 PM
Subject: [aspdotnet_website_programming] RE: Is it possible to maintain
treeview state?
As a common programming practice I did check IsPostBack, but click a link
doesn't fire the postback at all. Anyway, I have to use a IFrame and put
Javascript in the NavigateURL to make the treeview stay what it was and
load the page in the IFrame; It works pretty well.
I can provide code snippet if anybody interested in implementing this
navigation scheme.
JT
> This is a longshot - You mentioned setting the autopostback value - but
did
you ever check it in your pageload event?
everytime the page comes to the server the pageload event runs again, so is
your form just being recreated?
hope it helps!
|
|
 |