Master Page Controls & New Session

I have a master page with a LoginView control in a left pane. This all
works OK.

However, when a session expires and a user clicks a link, I go to a
'Session Expired' page and ask them to click a link to go back to my
Default.aspx. When this comes up, the page looks OK but the controls in
the master page have disappeared.

Is there something I can do to get the Default.aspx to load as if I had
navigated to it from a browser ?
Ian Semmel [ Do, 31 Januar 2008 06:38 ] [ ID #1920682 ]

Re: Master Page Controls & New Session

I think you better post relevant parts of the code before someoone can help
you.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"Ian Semmel" <anyone [at] rocketcomp.com.au> wrote in message
news:%23yL%234t8YIHA.1132 [at] TK2MSFTNGP06.phx.gbl...
>I have a master page with a LoginView control in a left pane. This all
>works OK.
>
> However, when a session expires and a user clicks a link, I go to a
> 'Session Expired' page and ask them to click a link to go back to my
> Default.aspx. When this comes up, the page looks OK but the controls in
> the master page have disappeared.
>
> Is there something I can do to get the Default.aspx to load as if I had
> navigated to it from a browser ?
>
>
Eliyahu Goldin [ Do, 31 Januar 2008 10:10 ] [ ID #1920692 ]

Re: Master Page Controls & New Session

As I recall you will need to raise a PostBack so the compiler can rebuild
the state of the control tree so try this:

Server.Execute("default.aspx")

<%= Clinton

"Ian Semmel" <anyone [at] rocketcomp.com.au> wrote in message
news:%23yL%234t8YIHA.1132 [at] TK2MSFTNGP06.phx.gbl...
>I have a master page with a LoginView control in a left pane. This all
>works OK.
>
> However, when a session expires and a user clicks a link, I go to a
> 'Session Expired' page and ask them to click a link to go back to my
> Default.aspx. When this comes up, the page looks OK but the controls in
> the master page have disappeared.
>
> Is there something I can do to get the Default.aspx to load as if I had
> navigated to it from a browser ?
>
>
Patrice [ Do, 31 Januar 2008 23:41 ] [ ID #1920784 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » Master Page Controls & New Session

Vorheriges Thema: MasterPages with Ajax
Nächstes Thema: how to show profile properties for all users?