Topic: ASP.NET

ASP.NET MVC 1.0 Website Programming: Problem - Design - Solution (0470410957) cover image

ASP.NET MVC 1.0 Website Programming: Problem - Design - Solution

Nick Berardi, Al Katawazi, Marco Bellinaso
ISBN: 978-0-470-41095-0
Paperback
552 pages
June 2009
This title is out-of-print and not currently available for purchase from this site.

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
25 Typo in Text
NHiberante

Should be

NHibernate
7/27/09
39 Error in Code
On Page 39 the code:

RedirectToRouteResult.Values["action"]

is wrong. It should be:

RedirectToRouteResult.RouteValues["action"]

Thus the Test on page 39 written correcly is:

[Test]
public void Register_Can_Successfully_Register_New_User()
{
var ac = new AccountController();
var results = ac.Register(username, email, question, answer, password);
Assert.IsNotNull(results);
Assert.IsInstanceOfType(typeof(RedirectToRouteResult), results);
var typedResults = results as RedirectToRouteResult;
Assert.AreEqual("Index", typedResults.RouteValues["action"], "Wrong action");
Assert.AreEqual("Home", typedResults.RouteValues["controller"], "Wrong controller");
}
08/04/2010
41 Error in Code
The code:

Assert.AreEqual("Index", typedResults.Values["action"], "Wrong action"); Assert.AreEqual("Home", typedResults.Values["controller"], "Wrong controller");

should be changed to:

Assert.AreEqual("Index", typedResults.RouteValues["action"], "Wrong action");
Assert.AreEqual("Home", typedResults.RouteValues["controller"], "Wrong controller");
08/06/2010
109 Error in Text
DESIGNING

Should be

Designing
7/8/09
312 Error in Code
Error:

Assert.AreEqual("Index", typedResults.Values["action"], "Wrong action"); Assert.AreEqual("Home", typedResults.Values["controller"], "Wrong controller");

should be changed to:

Assert.AreEqual("Index", typedResults.RouteValues["action"], "Wrong action");
Assert.AreEqual("Home", typedResults.RouteValues["controller"], "Wrong controller");
08/04/2010