Re: MasterPages - Dynamically Created Menus Disappearing
- From: "Mark Rae" <mark@xxxxxxxxxxxxxxxxx>
- Date: Mon, 23 Oct 2006 22:17:57 +0100
"BillE" <belgie@xxxxxxxxxxx> wrote in message
news:uQO6q%23t9GHA.4708@xxxxxxxxxxxxxxxxxxxxxxx
I think if you use NavigateURL it is not a postback so what you add to
viewstate is gone.
Well obviously - I think that's the fundamental issue that the OP can't
quite grasp...
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.
Session variables, Bill? Surely not! What if the user does a Ctrl-N...? ;-)
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.
Absolutely!
This is the way I do it, and it works fine. If there's a better way I
hope somebody posts it.
I wouldn't personnaly use Session for this - I'd have properties in the
class behind the MasterPage whose values would be set by the ContentPage -
but the effect is the same...
.
- Follow-Ups:
- References:
- Prev by Date: Re: ASP.NET and Page Navigation
- Next by Date: Server side viewstate
- Previous by thread: Re: MasterPages - Dynamically Created Menus Disappearing
- Next by thread: Re: MasterPages - Dynamically Created Menus Disappearing
- Index(es):
Relevant Pages
|