Wrox Programmer Forums
|
BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9
This is the forum to discuss the Wrox book Professional ASP.NET MVC 1.0 by Rob Conery, Scott Hanselman, Phil Haack, Scott Guthrie; ISBN: 978-0-470-38461-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-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 April 1st, 2009, 10:30 PM
Registered User
 
Join Date: Mar 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Error code in page 58(PDF) line 7

This is an unedited draft. Page 56 of 185
Original code:
<%= Model.EventDate.ToShortDateString() %>
As Model.EventDate is not a real datetime type,
we need a cast just like:
<%
DateTime dt =(DateTime ) Model.EventDate;
%>
<%=dt.ToShortDateString () %>
 
Old April 2nd, 2009, 10:51 AM
jminatel's Avatar
Wrox Staff
Points: 18,059, Level: 58
Points: 18,059, Level: 58 Points: 18,059, Level: 58 Points: 18,059, Level: 58
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Posts: 1,906
Thanks: 62
Thanked 139 Times in 101 Posts
Default

Hi patriot074. I moved your posted because it looks like it's about the NerdDinner chapter, so it was in the wrong book's forum. I'll try to be sure the authors see this.
__________________
Jim Minatel
Associate Publisher, WROX - A Wiley Brand
Did someone here help you? Click on their post!
 
Old April 3rd, 2009, 02:32 AM
Registered User
 
Join Date: Mar 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Wink Please answer me

Quote:
Originally Posted by jminatel View Post
Hi patriot074. I moved your posted because it looks like it's about the NerdDinner chapter, so it was in the wrong book's forum. I'll try to be sure the authors see this.
I've found some errors about chapter1 nerddinner.How can i send this feedback?u said 'it was in the wrong book's form'. Chapter1 is not a part of BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 ? I confused.
thx!
 
Old April 3rd, 2009, 09:16 AM
jminatel's Avatar
Wrox Staff
Points: 18,059, Level: 58
Points: 18,059, Level: 58 Points: 18,059, Level: 58 Points: 18,059, Level: 58
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Posts: 1,906
Thanks: 62
Thanked 139 Times in 101 Posts
Default

Sorry to add confusion. Now that I've moved it, this post is in the right forum. You can continue to post other errors you see here.
__________________
Jim Minatel
Associate Publisher, WROX - A Wiley Brand
Did someone here help you? Click on their post!
 
Old April 6th, 2009, 09:09 PM
Registered User
 
Join Date: Mar 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error code up to P95 I've already found

P94(This is an unedited draft. Page 92 of 185)
<code>
<asp:Content ID="Title" ContentPlaceHolderID="head" runat="server">
<title>Delete Confirmation: <%=Html.Encode(Model.Title) %></title>
</asp:Content>
</code>
As the example used a default Shared Site.Master(Auto-Generatd by Asp.Net MVC),
it doesn't have a ContentPlaceHolderId="head",so correct as below:
<code>
<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="server">
<title>Delete Confirmation: <%=Html.Encode(Model.Title) %></title>
</asp:Content>
</code>
---------------------------------------------------------------------------
P94/Code line 12(This is an unedited draft. Page 92 of 185 )
<code>
<% using (Html.BeginForm()) { %>
</code>
we should specify the actionName that which DinnerId to be deleted,so corret as below:
<code>
<% using (Html.BeginForm("Deleted/"+Model .DinnerID,"Dinners")) { %>
</code>
----------------------------------------------------------------------------
P95(This is an unedited draft. Page 93 of 185 )
<code>
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Delete(int id, string confirmButton)
</code>
Delete has been already used ,so correct as below:
<code>
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Deleted(int id, string confirmButton)
 
Old April 30th, 2009, 08:17 PM
Registered User
 
Join Date: Apr 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default No Error code in page 58(PDF) line 7

Hello Patriot074,

there is no error: the code works 100%.

Meziano
patriot074





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in Code page 388 NadAf BOOK: Ivor Horton's Beginning Visual C++ 2005 0 February 18th, 2008 11:24 PM
Code snippet error on page 370 cebartling BOOK: Professional Java Development with the Spring Framework 0 September 18th, 2005 10:00 PM
PhilePage Class on p. 58 JeffSpitzer BOOK: ASP.NET Website Programming Problem-Design-Solution 0 February 8th, 2004 09:08 AM
Page 58 - Class or Classlibrary? stuckish BOOK: ASP.NET Website Programming Problem-Design-Solution 1 February 8th, 2004 09:01 AM





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