p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 1st, 2009, 11:30 PM
Registered User
Points: 55, Level: 1
Points: 55, Level: 1 Points: 55, Level: 1 Points: 55, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 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 () %>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old April 2nd, 2009, 11:51 AM
jminatel's Avatar
Wrox Staff
Points: 7,285, Level: 36
Points: 7,285, Level: 36 Points: 7,285, Level: 36 Points: 7,285, Level: 36
Activity: 17%
Activity: 17% Activity: 17% Activity: 17%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,349
Thanks: 27
Thanked 49 Times in 40 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
Wiley Technology Publishing
WROX Press
Blog: http://p2p.wrox.com/content/blogs/jminatel
Wrox online library: http://wrox.books24x7.com
Wrox on Twitter: http://twitter.com/wrox
Did someone here help you? Click on their post!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old April 3rd, 2009, 03:32 AM
Registered User
Points: 55, Level: 1
Points: 55, Level: 1 Points: 55, Level: 1 Points: 55, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old April 3rd, 2009, 10:16 AM
jminatel's Avatar
Wrox Staff
Points: 7,285, Level: 36
Points: 7,285, Level: 36 Points: 7,285, Level: 36 Points: 7,285, Level: 36
Activity: 17%
Activity: 17% Activity: 17% Activity: 17%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,349
Thanks: 27
Thanked 49 Times in 40 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
Wiley Technology Publishing
WROX Press
Blog: http://p2p.wrox.com/content/blogs/jminatel
Wrox online library: http://wrox.books24x7.com
Wrox on Twitter: http://twitter.com/wrox
Did someone here help you? Click on their post!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #5 (permalink)  
Old April 6th, 2009, 10:09 PM
Registered User
Points: 55, Level: 1
Points: 55, Level: 1 Points: 55, Level: 1 Points: 55, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #6 (permalink)  
Old April 30th, 2009, 09:17 PM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 11: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



All times are GMT -4. The time now is 02:37 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc