Wrox Programmer Forums
|
BOOK: Beginning ASP.NET Web Pages with WebMatrix
This is the forum to discuss the Wrox book Beginning ASP.NET Web Pages with WebMatrix by Mike Brind, Imar Spaanjaars ; ISBN: 978-1-1180-5048-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET Web Pages with WebMatrix 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 February 24th, 2012, 04:13 PM
Authorized User
 
Join Date: Mar 2011
Posts: 74
Thanks: 21
Thanked 2 Times in 2 Posts
Default WebMatrix Razor and ASP.NET MVC 3 Framework

Would like somebody to contrast or explain how Razor fits into both WebMatrix and ASP.NET MVC 3 Framework? I'm just scratching the surface with the first two chapters of a book on the MVC 3 Framework. The institution I'm working for seems to be heading more in the MVC direction for web apps, so I need to head that way.

Thanks!

Last edited by jpjamie; February 24th, 2012 at 04:20 PM..
 
Old February 25th, 2012, 03:57 AM
Wrox Author
 
Join Date: Dec 2011
Posts: 57
Thanks: 1
Thanked 19 Times in 19 Posts
Default

MVC 3 is built on top of the Web Pages framework. Razor was developed for Web Pages, but the MVC team liked it and decided to use it as an additional View Engine. The underlying parser is exactly the same for both frameworks, as is the syntax. You can use the Web Pages helpers in MVC - but not necessarily vice-versa.
 
Old February 25th, 2012, 07:11 PM
Authorized User
 
Join Date: Mar 2011
Posts: 74
Thanks: 21
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by Mike Brind View Post
MVC 3 is built on top of the Web Pages framework. Razor was developed for Web Pages, but the MVC team liked it and decided to use it as an additional View Engine. The underlying parser is exactly the same for both frameworks, as is the syntax. You can use the Web Pages helpers in MVC - but not necessarily vice-versa.
Thank you Mike!
I realize this is a loose association from this threads orientation.
Interesting MVC (Model - View - Controller) is built on top of the Web Pages framework. I noticed the two options for view engine. The book I'm reading prefers the Razor option, which was a pleasant surprise.

Just want to say you and Imar's book got me up and running with WebMatrix (converting apps from ColdFusion) and it seems it will help me with MVC 3, because it uses Razor!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Entity Framework And MVC geomar BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 5 January 24th, 2011 04:58 PM
Errors while upgrade theBeerHouse mvc project form asp.net mvc 1.0 to 2.0 vanbach1304 BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 0 April 20th, 2010 06:43 AM
TheBeerHouse MVC preview ASP.NET MVC Website Programming Problem Design Solution jminatel BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 July 18th, 2009 09:16 AM
TBH to MVC Framework rocco50 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 June 23rd, 2008 04:50 PM
ASP.NET using Webmatrix yashvanjani ASP.NET 2.0 Basics 1 July 1st, 2006 04:28 PM





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