I'm Writing A Book On WebMatrix

Yes - it's official! I'm writing a book for Wiley all about Microsoft's new stack for beginner web developers - WebMatrix.

Launched just a few days ago, WebMatrix is already providing a lot of fuel for Tweeters - the vast majority of it very encouraging and positive, and some of it, well... uneducated, let's say. Regular visitors to this site will notice that I have been playing with WebMatrix since its first Beta release, and just like former Microsoft ASP.NET MVC Guru, Rob Conery (who's not shy in telling Microsoft when he thinks they have goofed), I believe that Microsoft have got WebMatrix just right.

Beginning ASP.NET Web Pages with WebMatrix will be published later this year - in September to be more precise. I am being supported by my good friend Imar Spaanjaars, a fellow ASP.NET MVP and first rate author of highly successful ASP.NET books, such as Beginning ASP.NET 4: in C# and VB. The book will target those who are completely new to web development, as well as their educators, but it will also appeal to bods who have a little web development experience away from ASP.NET, or those who found ASP.NET Web Forms or MVC all a little too daunting. It should also appeal to experienced ASP.NET developers who would like some "fun" injected into their web development again.

The book will cover:

  • What WebMatrix is all about
  • An introduction to HTML and CSS
  • Designing your pages and site
  • Programming with the Razor syntax
  • Using the Package Manager
  • AJAX with jQuery
  • Data and Databases
  • Securing your site
  • Optimising (I mean Optimizing - I have to write in American now...) your site for SEO
  • and more...

If there is anything in particular that you would like to see the book cover, let me know by using the comments form at the bottom of this page.

In the meantime, I have a busy few months ahead of me, so if I'm not posting new articles as regularly as I usually do, now you know why.

Date Posted: Tuesday, January 18, 2011 7:27 PM
Last Updated: Saturday, January 22, 2011 1:55 PM
Posted by: Mikesdotnetting
Total Views to date: 8839

26 Comments

Tuesday, January 18, 2011 7:55 PM - Mike Ferguson

Great news Mike! I look forward to picking it up.

You've mentioned there will be a chapter(s) on databases and security. I'd really like to see how one goes about creating the simple membership provider in MySQL. Yes, I'm wrestling with it right now :)

I always enjoy your articles on WebMatrix - keep up the good work.

Wednesday, January 19, 2011 5:49 PM - Max-B

Really happy for this - and for you!

You are doing a great work with this "framework" and I think the resulting book will be good

Saturday, January 22, 2011 2:43 PM - jean-claude

Put me down for a copy, please!

Sunday, January 30, 2011 1:16 PM - naveenj

wow mike... can't wait!

Saturday, February 5, 2011 5:21 PM - Sean O'Keeffe

Mike the book sounds fantastic! i think the Razor syntaxes should be as in depth as possible, if not the main "meat" of the book.

P.S its fine i like the work optimising

Saturday, February 5, 2011 11:07 PM - Mike

@Sean

Razor is just a wrapper around C#. I will cover the basics of C# in the book, and how to use Razor. However, I would always recommend learning C# properly for anyone wanting to do more than the very basics. There are quite a number of good C# books around.

Sunday, March 6, 2011 4:44 PM - John Hastings

I know the whole world is going to C# and only a few of us dinosaurs are still using VB, but would it be so hard to put some VB in the book? Us old coots would really appreciate it.

Sunday, March 6, 2011 6:11 PM - Mike

@John,

The book will be in C#. There is a limit to the size of the book (∛production costs / price ± likely potential copy sales or some similar formula) which means I can either include coverage of VB at the expense of content, or stick to C# and write in more depth. As it is, I'm struggling to keep to some of the chapter pagination budgets :o)

Tuesday, March 8, 2011 8:41 PM - Robby

Outstanding! If you would like a "dummy" sounding board off of which to bounce your draft chapters, I would be happy to do so. I am very much a tyro in C#, am involved in a web project using WebMatrix, and keenly aware of the erroneous assumptions some authors make about the depth of the readers' experience.
Given that I am (at least it seems to me) pretty much squarely in the dead center of the target audience for WebMatrix and Razor, I should be able to make a contribution of some value.

Thursday, March 17, 2011 7:06 PM - mike gil

Your articles are terrific and I'm looking forward buying your book. I'm already reading Imar's book (as you suggest above) but have one basic question that might help all us "newbies" until your book does come out:

Can you use most of what is in Imar's ASP.NET book (ie: Controls, JQuery, .Net Ajax) with WebMatrix?

I get the impression that you can and that WebMatrix is just a more simplified framework than ASP.NET and is the stepping stone to MVC.

Thursday, March 17, 2011 8:37 PM - Mike

@mike

You can use Server Controls etc in WebMatrix, but I wouldn't recommend it. Use Visual Web Developer Express instead. WM doesn't include any design time support, for one thing, and is intended primarily for developing using ASP.NET Web Pages rather than Web Forms.

Tuesday, March 22, 2011 5:58 PM - Frank Wannall

When will the book be published?

Wednesday, March 23, 2011 6:14 AM - Mike

@Frank,

The current publication date is the end of October 2011.

Sunday, April 10, 2011 4:29 AM - Jeff Rogers

I look forward to the publish date. I think readers for eBooks and similar popular technologies would make good example projects for your readers. It would be nice to see some real world examples that could be adopted and built upon.

Tuesday, April 12, 2011 4:11 PM - antony

I like all books i read but i find a little pity thing who i never love especially in MSFT press book.

they hide [not show] firebug whenever they light on IE dev tool. the feature IE dev not have why they trying to show as best.

we know MSFT make IE and IE dev tool [their is another matter i know that it's unperfect]

but why MSFTian abuse MySQL , chrome and many other things when they have minus point and have a plus point in their own product.

i have no problem why they abuse but what kind of stupidity it is they talk loud when something they have better then others.

this kind of thing teach a lesson that [beware of MVP especially from corporate like Microsoft]

because Microsoft never talk about that something they not have perfect and talk loudly if they have something better. this thing not only depend on Microsoft. all other corporate have same fundamentals.

so can you sure that you write this book naturally ?

Tuesday, April 12, 2011 4:57 PM - Mike

@antony

I'm not writing an MS Press book. Beyond that, I don't work for Microsoft or understand the rest of your comments. Maybe you should check your facts?

What do you think my relationship with Microsoft is? They gave me an award, but they don't tell me what to do.

Thursday, March 7, 2013 3:05 PM - Don Schwirtlich

Your book is one of the few that I have purchased both a kindle and hardcopy version. It and along with the spread of asp tutorials at asp.com, are awesome. I am an experienced programmer - but a newbie at web dev. thanks much.

Monday, March 18, 2013 4:58 PM - Matt

Hi Mike
I'm new to MW and really trying to embrace it. I've got a book at the moment which says how to add textboxes, buttons etc but you comment above says this. I'm a still very new if you could explain a bit more about how to write forms in ASP (sorry I get very easily confused with me being new to MW and trying to avoid Visual Studio if I can !!) :-

17 March 2011 20:37 from Mikesdotnetting

@mike

You can use Server Controls etc in WebMatrix, but I wouldn't recommend it. Use Visual Web Developer Express instead. WM doesn't include any design time support, for one thing, and is intended primarily for developing using ASP.NET Web Pages rather than Web Forms.

Wednesday, March 20, 2013 9:26 PM - Mike

@Matt,

Server controls belong to the Web Forms development model. WebMatrix is designed for the Web Pages framework. They are completely different ways of developing web applications based on ASP.NET.

Friday, April 5, 2013 12:19 PM - Satyabrata Mohapatra

Sir,
Today i got the book "Beginning ASP.NET Web Pages with WebMatrix". It is a fantastic book !! Good for both beginners and seasoned developers.

Friday, June 27, 2014 12:27 AM - John

I am thoroughly enjoying your book. It is exactly what I needed to learn to use WebMatrix. However, I am having a problem getting the ListCars.cshtml to work. When I click the Get Cars button, nothing happens. I have checked all the code against what you have in the book, but still no luck.
I'm not sure if this is the right place to ask this question, but if you can let me know if the code in the book is know to run, I would appreciate knowing that.
Thank you, again for a great book!

Saturday, June 28, 2014 9:03 AM - Mike

@John,

You really need to post your question to a forum like this one

Friday, October 31, 2014 11:07 AM - Mesut

Hello,
Thank you for your great book. I have learned lots of from this book. Could you please prepare a new version of your book which uses Microsoft Visual Studio Express 2013 for Web and SQL Server, and at the end of the book the site which we create will be a responsive site.
Thank you in advance..

Friday, October 31, 2014 12:39 PM - Mike

@Mesut

I doubt very much whether the publishers are interested in another version of the book right now. There is a new version of ASP.NET coming out at some time and it's not clear at the moment how the Web Pages framework will fit into that.

Thursday, November 20, 2014 8:01 AM - Gautam

Hello Mike,
I read your book, loved it!
However, I have a few request/suggestions:
1) an example of a complete web grid with, add/edit/delete/delete all functionality along with search form(1 text box & 2 drop down).
2) any scope of book vol 2, where u cover advanced topics on web pages
3) I am asking all these because I am new to programming and after reading your book on asp,net webpages implementing functionality like my point no 1 seems too tough.
4) I want to learn c# but which ever book I read they teach console apps. It is the way it should be or do u recommend a book for c#?

Thursday, November 20, 2014 12:07 PM - Mike

@Gautam,

You should be able to cobble a fully CRUD-enabled WebGrid form the numerous examples on this site. If you have problems getting bits to work, post questions to the WebMatrix and ASP.NET Web Pages forum.

I have no plans at the moment for a second book on Web Pages, but might think again when the next version of Web Pages is released as part of ASP.NET 5.

Any C# book would be good. They tend to use Console applications because they are are simple way to demonstrate and test C# expressions and statements. The C# you put in a Console app is the same as you would use for an ASP.NET app.
Add your comment

If you have any comments to make about this article, please use this form to do so. Make sure that your comment relates specifically to the article above. More general comments can be posted through the form on the Contact page.

Please note, all comments are moderated, and some may not be published. The kind of things that will ensure your comment is deleted without ever seeing the light of day are as follows:

  • Not relevant to the article
  • Gratuitous links to your own site or product
  • Anything abusive or libellous
  • Spam
  • Anything in a language I don't understand including gibberish.

I do not pass email addresses on to spammers, so a valid one will assist me in responding to you personally if required.

Recent Comments

Gautam 11/20/2014 8:01 AM
In response to I'm Writing A Book On WebMatrix
Hello Mike, I read your book, loved it! However, I have a few request/suggestions: 1) an example...

Bret Dev 11/19/2014 8:39 PM
In response to The Difference Between @Helpers and @Functions In WebMatrix
Excellent post! One concern - where can you place global @Functions code within an MVC project to Is...

Rob Farquharson 11/19/2014 4:28 PM
In response to iTextSharp - Links and Bookmarks
How can I place text at an absolute position on the page? Also, how can I rotate text?...

Andy 11/17/2014 8:08 PM
In response to MVC 5 with EF 6 in Visual Basic - Sorting, Filtering and Paging
Hello I'm testing your sorting instructions above. This is great and I was able to get it to work...

Gautam 11/17/2014 5:51 PM
In response to WebMatrix - Database Helpers for IN Clauses
Hi Mike, I am very new to programming: In the above example if I want to use a delete button the...

donramon 11/17/2014 3:22 PM
In response to Entity Framework 6 Recipe - Alphabetical Paging In ASP.NET MVC
Congratulations on your new website look and the excellent articles. Thank you!...

Gautam 11/17/2014 11:26 AM
In response to Looking At The WebMatrix WebGrid
Hi Mike, I add the jquery script at the end of my html file.. when ajax attribute is added to the be...

Chet Ripley 11/15/2014 6:57 PM
In response to Adding A New Field
It appears the command is case sensitive. I had the same issue as Cameron. When I changed the to it...

Alvin 11/14/2014 12:49 PM
In response to Razor Web Pages E-Commerce - Adding A Shopping Cart To The Bakery Template Site
Great article Mike! When do you plan to extend the bakery shopping cart beyond this point?...

Gautam 11/14/2014 10:16 AM
In response to Web Pages - Efficient Paging Without The WebGrid
to get the count can we use only the below sql, why to join category and author table var sql =...