473,326 Members | 2,438 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

LoginStatus Control

Hi,

I am using a LoginStatus Control in a c# based .aspx page. The page includes
some dynamically created
controls. These are set up automatically, depending on what is in the
Request object.

My page works fine until I click on my logout link. This seems to cause the
OnInit and Page_Load events to occur twice - the first is as I would expect,
but the second has an empty Request object and the result is that I am
unable to create the correct page layout.

Is this normal behaviour for the LoginStatus control? I can't see why these
events are occurring twice.

Many thanks for any help on this,

Jimbo.
May 9 '07 #1
1 1738
On May 9, 8:14 am, "Jimbo" <j...@nospam.nonewrote:
Hi,

I am using a LoginStatus Control in a c# based .aspx page. The page includes
some dynamically created
controls. These are set up automatically, depending on what is in the
Request object.

My page works fine until I click on my logout link. This seems to cause the
OnInit and Page_Load events to occur twice - the first is as I would expect,
but the second has an empty Request object and the result is that I am
unable to create the correct page layout.

Is this normal behaviour for the LoginStatus control? I can't see why these
events are occurring twice.
You might want to ask this on an aspnet forum, as this one is specific
to C#, and you'll get better answers on an aspnet forum.

May 9 '07 #2

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

Similar topics

2
by: clintonG | last post by:
The LoginStatus control does not have a click event. If anybody is at all familiar with this control and can explain how to create a click event I'm ready to learn something new. <%= Clinton...
0
by: AR | last post by:
I am interested in the best approach for placing a LoginStatus control in a Master page. The reason I'm doing this is so I can always display the "Login" or "logout" link at the top of every page...
0
by: clintonG | last post by:
Has anybody observed the use of the LoginStatus control? Selecting it emits two clicks where as other selections emit one click. I've tested this control in a clean page to isolate the behavior....
0
by: markmm | last post by:
Hi folks, Im trying to use the LoginStatus Control in a Master page, the login part works fine. When logged in the logout link appears and when clicked it seems to trigger the next button on my...
1
by: frolda | last post by:
Hi, I moved my login.aspx page from root to a subdirectory and made -hopefully- all necessary changes for all Login controls. All the controls work just fine, except one. To my regret, the...
0
by: pbaugh | last post by:
Hi Folks, I'm using the ASP.NET 2.0 LoginStatus control and am having a frustrating time! I created a basic testbed web site added the control to the default page, added a login.aspx page with a...
3
by: Dan Sikorsky | last post by:
How do you get a reference to the LoginStatus control contained in the LoginView control that resides on web.master? I need to determine if the LoginStatus will show a LogOut link(for a logged...
2
by: Jeff | last post by:
hey asp.net 2.0 I've placed a LoginStatus control on a master page (so I don't need to have it on every webpage) in my project. When I click on this control to logout, I get this error: A...
0
by: helveticus | last post by:
I am struggling to allow a LoginStatus control reflect its changed state when embedded in a cached page. All pages in my app share a common login user control that basically consists of a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.