Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
| Search | Today's Posts | Mark Forums Read
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 24th, 2009, 12:12 PM
Friend of Wrox
 
Join Date: Sep 2007
Location: , , .
Posts: 169
Thanks: 7
Thanked 2 Times in 2 Posts
Default Having problems with MasterPage + LoginStatus Control -Logout + Pages in a different

Hi
I put a login status control that I set to go back to login page. Now this works at all levels same level as the master page(ie if I hit logout it will logout an go to home page). Now I have a membership area that is in a folder and when I hit the button to logout it wil try to find the home page within that folder.
So I am not sure how to do it. I got by this problem with other things by using ResolveClient but aps.net tags don't alllow you to put that in the tag like it does with html tags so I am not sure what to do.
 
Old March 24th, 2009, 12:57 PM
Lee Dumond's Avatar
Wrox Author
Points: 4,942, Level: 29
Points: 4,942, Level: 29 Points: 4,942, Level: 29 Points: 4,942, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Have you tried using ~ to resolve the URL?
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}
 
Old March 24th, 2009, 01:20 PM
Friend of Wrox
 
Join Date: Sep 2007
Location: , , .
Posts: 169
Thanks: 7
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by Lee Dumond View Post
Have you tried using ~ to resolve the URL?
I am not sure.

This is what I have.

<li><asp:LoginStatus ID="ls_MasterStatus" runat="server" onloggingout="ls_MasterStatus_LoggingOut"
LogoutPageUrl="~/Home.aspx" /></li>

I noticed that if you don't put Logout action it just goes back(or tries to) go back to the login page.

So I am not sure what to really do if I put the logout action to that then it seems to work and goes where I want on logout. On login that's a different story it goes to the home page then.

So if I put that in it does not work. If I put it in it does not work.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Chane Properties of a user control from MasterPage slim182 ASP.NET 2.0 Basics 1 February 26th, 2007 09:54 PM
Urgent!! need help...Logout problems riki_gill ASP.NET 1.x and 2.0 Application Design 0 October 20th, 2006 09:21 AM
Asp.net Logout problems hemal_301080 ASP.NET 1.0 and 1.1 Professional 1 August 6th, 2006 12:16 PM





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