Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 20th, 2009, 09:01 PM
Friend of Wrox
 
Join Date: Sep 2007
Posts: 169
Thanks: 7
Thanked 2 Times in 2 Posts
Default LoginStatus not going to desired page.

Hi

I have a loginStatus that is in a master page. When it is in Login mode it goes to login page what is desired.

When it is in logout mode and I hit logout it does not go anywhere. I am assuming that when you click logout it first ends that persons session or whatever so they are logged out and I don't have to deal with it but I can choose any page I want and when I click logout it just seems to post back to itself.

<asp:LoginStatus ID="ls_MasterStatus" runat="server"
LogoutPageUrl="~/Canceled.aspx" /></a></li>
 
Old March 20th, 2009, 10:27 PM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Why do you have your LoginStatus control embedded in an <a> tag? I think that may be your issue.
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}
 
Old March 21st, 2009, 12:26 AM
Friend of Wrox
 
Join Date: Sep 2007
Posts: 169
Thanks: 7
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by Lee Dumond View Post
Why do you have your LoginStatus control embedded in an <a> tag? I think that may be your issue.
Ya that is kinda redundant. It had the path to the page. It is my menu so I just sort of was copying and pasting it. Ya it seems that was half of the problem the other part is you need to specify the Action tag too other wise ti would not still work.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Uniqueness of LoginStatus controls roman BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 4 June 25th, 2008 05:01 PM
Need Help in LoginStatus and Asp:ImageButton [Mini kamii47 ASP.NET 2.0 Basics 0 September 1st, 2007 04:24 PM
how can i take print out of desired area gulerbekir Classic ASP Professional 2 December 22nd, 2004 12:01 AM
XML won't transform as desired albruan XSLT 3 April 14th, 2004 04:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.