p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 (http://p2p.wrox.com/forumdisplay.php?f=472)
-   -   Couple Of Code Errata (http://p2p.wrox.com/showthread.php?t=74841)

AspNew June 18th, 2009 01:30 PM

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.

nberardi June 22nd, 2009 03:36 AM

Thanks for the report I will try to reproduce it when I get back from Europe.

All times are GMT -4. The time now is 01:10 AM.

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