View Single Post
  #2 (permalink)  
Old February 28th, 2013, 02:06 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,948
Thanks: 79
Thanked 1,555 Times in 1,532 Posts
Default

Hi there,

I don't have the book right here with me so I can't check. However, the downloadable code has this:

@RenderPage("~/Shared/_Footer.cshtml", new {Year = DateTime.Now.Year})

Notice it uses curly braces {} around the anonymous type for the date instead if parentheses () as per your example. Maybe it's just a typo?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote