Re: MasterPages - Dynamically Created Menus Disappearing
- From: "BillE" <belgie@xxxxxxxxxxx>
- Date: Mon, 23 Oct 2006 16:13:08 -0400
I think if you use NavigateURL it is not a postback so what you add to
viewstate is gone.
I use the SelectedNodeChanged event of the treeview to load the value I want
into a temporary session variable. Then I call Response.Redirect to open
the content page. The content page retrieves the temporary session
variable.
I have a function in my master page to load my treeview. I can call this
function in the master page from the content page when it loads. It passes
the value it retrieved from the session variable to the function in the
master page.
Remember to set the VirtualPath attribute of the MasterType directive in the
content page, so you can call functions in the master page - like
'Master.LoadTreeview(id)'.
This is the way I do it, and it works fine. If there's a better way I hope
somebody posts it.
-Bill
"LvBohemian" <LvBohemian@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7E45D041-2E07-41C1-BDE0-A4E4BA36E75A@xxxxxxxxxxxxxxxx
in order to rebuild the tree/menu on postback, I still need to persist the
values used to create the menu to begin with...
therein looks to be my problem, i am losing what I have previously put
into
viewstate before I ever get to the page load/page init...
as soon as I select a menu item, bam, everything I put in viewstate is
gone...
before the new page load/page init...
suggestions?
thanks in advance.
.
- Follow-Ups:
- Re: MasterPages - Dynamically Created Menus Disappearing
- From: Mark Rae
- Re: MasterPages - Dynamically Created Menus Disappearing
- References:
- Prev by Date: Re: register css style ***
- Next by Date: browser detection and redirection
- Previous by thread: Re: MasterPages - Dynamically Created Menus Disappearing
- Next by thread: Re: MasterPages - Dynamically Created Menus Disappearing
- Index(es):