473,656 Members | 2,824 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 2112
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****@rocketc omp.com.auwrote in message
news:%2******** **********@TK2M SFTNGP06.phx.gb l...
>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.as px")

<%= Clinton

"Ian Semmel" <an****@rocketc omp.com.auwrote in message
news:%2******** **********@TK2M SFTNGP06.phx.gb l...
>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
1246
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 Session state is application specific, we would like to know the microsoft best practices when dealing with this situation. Both in ASP.net 1.1 and the new ASP.net 2.0. In 2.0 I have noticed that the master page looks like it is website specific. ...
14
2391
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 standard ASPX page with minor modifications to it. All of my pages inherit from a "BasePage.cs" class, that handles common things like getting the user's information out of the session, determines if a page should or should not be password...
4
2383
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 page fine (normally page_load or page_preinit), i.e.:
4
8928
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 problem is, when the javascript fires on the txtDateRequiredOut TextBox in IE, I get "Error on Page" in the status bar and the error says: "Object Expected". Viewing the source of the page while running shows a link created properly for the linked...
17
3150
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 pages? Kinda sorta a critical point no? Am I missing something? Rob. P.S. the day I find a book that actually is useful rather than just a
4
2187
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 kinds of staff details, like family member details, contact information, etc. Hence, this case, I'll have - Staff.master - Family.aspx
13
5306
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 (called "CurFlag") on my master page that can be accessed from content pages, but not from separate code modules. I tried doing something like this in my VB code module: Dim myMaster As MasterPage = CType(ProjectMgmt.Master, MasterPage)
0
2744
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 & JS files using the code behind of the content page, my buttons aren't rendered and Im not sure why? Here is the code for my content page - Properties.aspx:- <%@ Page Language="C#" AutoEventWireup="true" Title="Properties"...
4
7648
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 aswell. but it doesn't. it works only for default.aspx only. How can i do that? do i need refresh master page or call my condition in every page to setup master's button visiblity Thanks Ganapathi
0
8717
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8600
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7311
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5629
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1600
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.