Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 1.1
This is the forum to discuss the Wrox book Beginning ASP.NET 1.1 with Visual C#.NET 2003 by Chris Ullman, John Kauffman, Chris Hart, Dave Sussman, Daniel Maharry; ISBN: 9780764557088
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.1 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 10th, 2006, 06:22 AM
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 17 - Wrox United Login Page

I have successfully completed the Try It Out 'Adding a Login Page to WroxUnited' example. Unfortunately, the coding provided for this example is not of the same high standard found in other chapters of the book. In fact, it is positively riddled with errors and concept problems. Anyway, whoever gets through it will have learnt quite a lot about ASP.Net by the time they finish.

For instance, on Page 674, navbar.ascx.vb (and not navbar.ascx as stated), we are told to test right$(Request.ServerVariables("APPL_PHYSICAL_PATH "),11) = "WroxUnited\" to prove that we are in the main directory and not the admin subdirectory. However, this value never changes, regardless of whether we are viewing a page in the admin subdirectory or not. The result of this is that linking from one admin page to another does not work. We should be testing "PATH_INFO" instead:
If right$(Request.ServerVariables("PATH_INFO"),10)="a dmin.aspx" then .. will test that we are in the admin subdirectory. This is the same test shown in the btn_Logout Sub.

Also, on the same page, there is a mismatch between the persistence of the UserLevel and AdminLevel cookies and user authentication (request.IsAuthenticated is true), which causes the page to fail.
If Not Request.Cookies("UserNameCookie") is Nothing
should be placed before any tests of the cookie values, and a cookie Expiry value is required when creating them.

In other pages, the Admin Level field (which is crucial to the example) is not included in the Players table for the WroxUnited database, the Add new player link on the PlayerAdmin page does not work (it fails to initialise the Status properly); the Delete a player link does not work because of the associated PlayerTeam table entry, and in the Header.ascx user control does not work for pages in the admin subdirectory (it needs rewriting using ASP.Net controls instead of HTML tags).

The coding shown in this chapter of book could never have worked, so has not been tested. That really isn't good enough. But never mind, if you are stuck on this one, enjoy the experience, you will lean a lot.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Wrox United - Login Problem tonymcq1065 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 October 1st, 2007 08:07 AM
Database Problem /Chapter 03 Wrox United Example dynamicarray BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 February 12th, 2007 09:24 AM
Wrox United - chapter 14 - error SqlDependency tom_10000001 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 November 10th, 2006 06:22 AM
Help!! Page 664 - Wrox United Installation AndiTaylor BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 2 March 7th, 2006 09:15 AM
Wrox United chapter 4 diango BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 4 December 29th, 2005 12:47 PM





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