Layouts And Sections With Razor

Yesterday night I had decided, that this morning I was going to sit down and write a post on the uses of the IsSectionDefined method in the Razor syntax, and how useful it was for determining if views were implementing certain sections in a layout.  (which is very useful and…

With Each Step Forward, Microsoft Takes Two Back

Today I was browsing a Microsoft published document on creating ASP.NET Web Pages using the Razor Syntax and to my surprise I found this gem on page 65.  @{ var db = Database.OpenFile("SmallBakery.sdf"); var selectQueryString = "SELECT * FROM Products ORDER BY Name"; } <!DOCTYPE…