Wrox Programmer Forums
|
BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9
This is the forum to discuss the Wrox book Professional ASP.NET 3.5: In C# and VB by Bill Evjen, Scott Hanselman, Devin Rader; ISBN: 9780470187579
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 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 August 14th, 2009, 11:33 AM
Authorized User
 
Join Date: Jul 2009
Posts: 61
Thanks: 15
Thanked 1 Time in 1 Post
Default Chapter 15 pp520-528 - LoginStatus

Hi,
i am following the instructions in this section and basically everything works except that wgen the current user is Logged Out and he clicks on the Login link provided by the LoginStatus control, an error 404 is returned as it is expecting a login.aspx file in the root of the website.
  1. As a LOGIn button is being provided immediately above the status link, it seems redundant to have the StatusLink attempting to go to a login page.
  2. 2. My site layout is naturally different to Planet Wrox and I am not using a seperate login page, rather I am putting the login box in a column of my default page.
I have set the Logout Action property to refresh and 'Logout' functions Ok

I cannot find a property to set to change the URL of the LogIn link??
__________________
Geoff Baldwin
 
Old August 18th, 2009, 05:26 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Is this about the book Beginning ASP.NET 3.5 or Professional ASP.NET 3.5? You posted in the forum for the latter while you seem to be referring to the former.

Anyway, you can set the loginUrl attribute of the <forms /> element in web.config (which is a sub element of <authentication />) to a different page.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
SouthendSupporter (August 18th, 2009)





Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter 15 help kyledonmoyer BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 2 June 30th, 2007 08:06 AM
Page 528, Box.h, Ex9_15 Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 0 July 9th, 2006 02:45 AM
Chapter 15 moggie BOOK: Beginning ASP 3.0 2 October 19th, 2004 01:30 PM
Chapter 15!! studentinpain BOOK: Beginning ASP 3.0 16 March 12th, 2004 10:26 AM
Chapter 15 help Lorenzo_G BOOK: Beginning ASP 3.0 1 November 27th, 2003 01:00 PM





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