Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
Password Reminder
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
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

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.
  #2 (permalink)  
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

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

if (this.PostHelpedYou)
  #3 (permalink)  
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

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.

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 08: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

All times are GMT -4. The time now is 06:00 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.