Master Page Controls & New Session
am 31.01.2008 06:38:23 von Ian Semmel
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 ?
Re: Master Page Controls & New Session
am 31.01.2008 10:10:37 von Eliyahu Goldin
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" wrote in message
news:%23yL%234t8YIHA.1132@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 ?
>
>
Re: Master Page Controls & New Session
am 31.01.2008 23:41:27 von Patrice
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" wrote in message
news:%23yL%234t8YIHA.1132@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 ?
>
>