473,503 Members | 1,654 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 ?
Jan 31 '08 #1
2 2106
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" <an****@rocketcomp.com.auwrote in message
news:%2******************@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 ?


Jan 31 '08 #2
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" <an****@rocketcomp.com.auwrote in message
news:%2******************@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 ?

Jan 31 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1227
by: Robert Sprague | last post by:
We have a corporate intranet with many web based applications. Our goal is to have a single login for the user, but we wish to pass these login credentials to each of our appications. Since...
14
2377
by: multiformity | last post by:
So I have been working on an opensource project for a while, and decided to really try to make it look better after focusing on the functionality most of this time. Up to now, I have simply used a...
4
2371
by: fishek | last post by:
I have a Master Page with a property defined in codebehind like this: private string profile; public string Profile { get { return profile; } } I can set the property value in the master...
4
8923
by: Greg | last post by:
I'm guessing the problem I'm having has something to do with Master Pages or DetailsView because the exact same code works fine on a page without a Master Page and DetailsView controls. The...
17
3134
by: Rob R. Ainscough | last post by:
Again another simple concept that appears NOT to be intuitive or I'm just stupid. I've read the WROX book and the example doesn't actually show how the .master page links in the other content...
4
2182
by: Janet | last post by:
Hi, I'm trying to use the master/detail page to display the information of staff. The master page will display some general information, while the differen detail pages will show the different...
13
5289
by: Kirk | last post by:
I have been reading Scott Allen's article on Master Pages (http:// odetocode.com/Articles/450.aspx) but I am having problems understanding a concept. Specifically, I have created a property...
0
2733
by: dixonjm | last post by:
Hi, I have a master page & various pages that will use this master page. Each content page will have a CSS & JS file which will be named the same as the content page. When I try to load the CSS...
4
7632
by: Ganesh | last post by:
I've couple of button on master page, based on user login from default.aspx i control visibility of controls. I thought once i hide the button from default.aspx it should be same for other pages...
0
7198
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6979
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.