Wrox Programmer Forums
|
BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950
This is the forum to discuss the Wrox book ASP.NET MVC Website Programming Problem Design Solution by Nicholas Berardi, Al Katawazi, and Marco Bellinaso; ISBN: 9780470410950
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 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 June 18th, 2009, 01:30 PM
Authorized User
 
Join Date: Dec 2008
Posts: 29
Thanks: 1
Thanked 5 Times in 5 Posts
Default Couple Of Code Errata

In the Controllers/UserController.cs code (based on version 51662), the ! should be removed from lines 52 and 147, because if String.IsNullOrEmpty is true (i.e. url is invalid), then you want to stay in the same url. Otherwise you go to the default, which is most likely the home page.

Edit: Oops, what I just said will crash the page but the original code is not giving the right behavior either if the string is not null/emtpy. For example, after the good registration, I should be brought back to the home page. Instead I was staying in the registration page.

Last edited by AspNew; June 18th, 2009 at 01:41 PM..
 
Old June 22nd, 2009, 03:36 AM
nberardi's Avatar
Wrox Author
 
Join Date: Aug 2008
Posts: 102
Thanks: 1
Thanked 16 Times in 16 Posts
Send a message via AIM to nberardi
Default

Thanks for the report I will try to reproduce it when I get back from Europe.
__________________
Check out my blog at: http://www.coderjournal.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
VB Edition C7, Full Errata and New Code Downloads DanM BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 October 3rd, 2006 03:51 PM
Errata,Code,Ch14,ThrowExample.htm din BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 0 January 20th, 2006 05:07 AM
Errata,Code,Ch11,ListboxAddExample.htm din BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 1 January 17th, 2006 10:28 AM
Get you WROX Source Code and Errata Here!! progmaniac Wrox Book Feedback 1 April 5th, 2004 08:28 AM
Can not find Code and Errata? naveed ahmed All Other Wrox Books 4 August 19th, 2003 08:20 AM





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