Articles : Page 7 of 13

  • The MVC3 special sauce in POP Forums

    The MVC3 special sauce in POP Forums

    Jan 11
    24

    I was chatting with a friend about why, as much as I would rather not rewrite POP Forums for the bazillionth time, it has actually been a lot of fun, and smooth sailing on MVC. If you haven't been playing along at home, POP Forums is the forum app that I've been maintaining now since the days of ASP.old, in sites like CoasterBuzz. In late 2009, I decided I'd rewrite it from the ground up as an MVC app, but it was slow going after the birth of my child. But when I did find time to write code, e...


  • Dependency Injection in MVC 3–with Views

    Dependency Injection in MVC 3–with Views

    Jan 11
    24

    If you have not read the first post in this series, please do so as these samples build on that post. At first, it may appear that MVC 3s Dependency Injection is not all that different than what we had in MVC 1 and 2. The fact is, MVC 3 gives us a lot more flexibility, and for sure, Dependency Injection is a first class citizen in the ASP MVC Framework. Using the Unity IoC Container, lets take a look at how views can take advantage of Dependency Injection. View Page Class public class ...


  • Link Rollup: New Documentation and Tutorials from Web Platform and Tools

    Link Rollup: New Documentation and Tutorials from Web Platform and Tools

    Jan 11
    14

    Lots of cool stuff was released yesterday that I mentioned in the post ASP.NET MVC3, WebMatrix, NuGet, IIS Express and Orchard released - The Microsoft January Web Release in Context. The Web Platform Tools Content Team has been working hard on new content and tutorials to get you up to date on all this fun new stuff. Here's a link rollup from Wade's documentation team. Congratulations to Mike Pope, Tim Teebken, Rick Anderson, Tim Ammann, Keith Newman, Erik Reitan and Tom Dykstra on a gre...


  • POP Forums v9 Beta 1 for ASP.NET MVC 3 posted to CodePlex!

    POP Forums v9 Beta 1 for ASP.NET MVC 3 posted to CodePlex!

    Jan 11
    14

    As promised, I posted a beta build of my forum app for ASP.NET MVC 3. Get the new goodies here: http://popforums.codeplex.com/releases/view/58228 This is the first beta for the ASP.NET MVC 3 version of POP Forums. It is nearly feature complete, and ready for testing and feedback. For previous release notes, look here, here and here. Check out the live preview: http://preview.popforums.com/Forums Setup instructions are on the home page of this project. The new hotness in the beta, or what h...


  • Hey .NET Developers! Its Christmas All Over Again!

    Hey .NET Developers! Its Christmas All Over Again!

    Jan 11
    14

    Today was a great day to be a .NET developer. I felt like a five year old on Christmas morning. I had that feeling you get when you just finished opening all your gifts and you are not sure what you want to play with first. Just in case you are living under a rock, here is a quick summary of what I found under the Christmas tree today. MVC 3 – Its Finally Here Today MVC3 with Razor was released. This means that we can finally avoid paying the angle bracket tax. The new razor syntax will mak...


  • Razor Tip #2 : Inheritance & Configuration

    Razor Tip #2 : Inheritance & Configuration

    Jan 11
    13

    You can change the base class of a Razor view in ASP.NET MVC using an @inherits directive. @inherits MyWebViewPage<dynamic> The  default base class for a Razor view in ASP.NET MVC is WebViewPage<T>, and in most cases you don't need to fiddle with @inherits  - it's more common to use the @model directive and just strongly type the default base class with a specific ViewModel type. But, when you really need to set a different base class for a view, you'll probably need to set the same bas...


  • ASP.NET MVC 3 and NuGet 1.0 Released (Including Source Code!)

    ASP.NET MVC 3 and NuGet 1.0 Released (Including Source Code!)

    Jan 11
    13

    The changing of the year is a time of celebration as people reflect thoughtfully on the past year and grow excited with anticipation for what’s to come in the year ahead. Today, there’s one less thing to anticipate as we announce the final release of ASP.NET MVC 3 and NuGet 1.0! Oh yeah, this never gets old. Install it via Web Platform Installer or download the installer directly to run it yourself. Here are a few helpful resources for learning more about this release: What’s New in...


  • IntelliSense for Razor Hosting in non-Web Applications

    IntelliSense for Razor Hosting in non-Web Applications

    Jan 11
    12

    When I posted my Razor Hosting article a couple of weeks ago I got a number of questions on how to get IntelliSense to work inside of Visual Studio while editing your templates. The answer to this question is mainly dependent on how Visual Studio recognizes assemblies, so a little background is required. If you open a template just on its own as a standalone file by clicking on it say in Explorer, Visual Studio will open up with the template in the editor, but you won’t get any IntelliSense...


  • Announcing Philly Code Camp 2011.1 - Saturday, April 9, 2011

    Announcing Philly Code Camp 2011.1 - Saturday, April 9, 2011

    Jan 11
    10

    As usual, the Philly Code Camp will be held at DeVry University in Fort Washington, PA - just off the turnpike. If you are interested in submitting a session, click here. To register, click here. Historically, the Philly event is one of the biggest, most comprehensive of all the Code Camps. We have a great facility and an awesome development community. Being centrally located, Philly pulls in speakers from all over. This year, I am heading up the Web Framework Track. This track will focus on...


  • Razor Syntax Quick Reference

    Razor Syntax Quick Reference

    Jan 11
    07

    I gave a presentation to another team at Microsoft yesterday on ASP.NET MVC and the Razor view engine and someone asked if there was a reference for the Razor syntax. It turns out, there is a pretty good guide about Razor available, but it’s focused on covering the basics of web programming using Razor and inline pages and not just the Razor syntax. So I thought it might be handy to write up a a really concise quick reference about the Razor syntax. Syntax/Sample Razor Web Forms Equiva...