473,421 Members | 1,650 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,421 software developers and data experts.

LoginStatus control in Master page

AR
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 on my site.
However, this control needs to be placed inside a <form runat=server>
which means that any other page using this as their masterpage cannot
include a <form runat=server> tag because only one can ever be on a
page.

The easy approach is to place a <form runat=server> tag in my
masterpage surrounding the entire body and never include it in any
child pages, but this seems like overkill. Is there a better way to do
this? Is placing this control (or any other control that runs within a
form) on a masterpage discouraged?

<asp:LoginStatus
runat=server
LoginText="Click here to login"
LogoutText="Click here to logout"
LogoutAction=Redirect
LogoutPageUrl="~/default.aspx" />

Thanks in advance.

Nov 19 '05 #1
0 1643

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: 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...
1
by: Newish | last post by:
Hi I am using a LoginStatus control to log users out of the web application. I have a question and an issue: Question: Does this clear all session level variables for the user who logs out....
1
by: Jimbo | last post by:
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. ...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
1
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
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
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
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...

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.