Angle Bracket Percent

David Ebbo's blog Follow me on Twitter (@davidebbo)

Browse by Tags

Tagged Content List
  • Blog Post: Turn your Razor helpers into reusable libraries

    Note: the generator has evolved since this post. Although the post is still worth reading, please go to http://razorgenerator.codeplex.com/ for the most up to date doc. The first blog post I ever wrote was titled “ Turning an ascx user control into a redistributable custom control ”. It...
  • Blog Post: Light up your NuGets with startup code and WebActivator

    [Please see the WebActivator wiki for the latest docs] Wow, it’s hard to believe that it’s been less than a week since NuGet went public. We were hoping to get noticed, but the attention we got was way beyond my wildest expectations! The buzz on Twitter has just been phenomenal, and for...
  • Blog Post: T4MVC 2.6.20, and upcoming T4MVC talk at MvcConf

    I just pushed T4MVC out to the MvcContrib CodePlex site.  You can go to the T4MVC Home Page to get started with it. Last time I blogged about a T4MVC release was for 2.6.13.  In the mean time, I released 2.6.14 and 2.6.15, but they were minor updates so I just tweeted them.  You can check...
  • Blog Post: Check out Chirpy, a very cool Add-In to run T4MVC and do many other cool things

    Just a quick post to point folks to a very cool CodePlex Add-In that you may not know about.  It’s called Chirpy and can be downloaded from http://chirpy.codeplex.com/ .  The reason I discovered it is that it includes functionality to automatically run T4MVC.  In fact, it is basically...
  • Blog Post: How WebMatrix, Razor, ASP.NET Web Pages and MVC fit together

    Today, we announced the public availability of the Microsoft WebMatrix Beta . This is an exciting time, as we’ve been working on this project for quite a while, and have been eager to get it out there! Our VP Scott Guthrie has been blogging about a number of its components in the last week or so...
  • Blog Post: An even better way to run T4MVC: a VS AddIn

    Last week, I blogged about a nice way of auto-running T4MVC by using the Macro IDE to write an OnBuildBegin event handler .  This was a big improvement over the hacky ‘AlwaysKeepTemplateDirty’ flag that we’ve been using since T4MVC’s early days. Since then, Wayne Brantley has taken this idea to...
  • Blog Post: A better way to auto-run T4MVC when you build

    Update: also see the newer post on this topic   T4MVC has always struggled with finding the right way of running automatically when you build.  Being a T4 template in your project, by default it just runs when you save it.  This is not great, because you really want it to rerun whenever...
  • Blog Post: T4MVC 2.6.13: now officially in MvcContrib, with a few new features

    To get the latest build of T4MVC: Go to MvcContrib T4MVC page on CodePlex   A few weeks back, we announced (mostly on Twitter) that T4MVC was moving into the MvcContrib Codeplex project.  I didn’t say much about it at the time because there wasn’t a whole lot to say yet, in the sense that the...
  • Blog Post: Debugging ASP.NET generated code

    Update 2/4/2010 : changed Technique #2 to use Debugger.Break()   This post applies to any ASP.NET app that uses .aspx files, whether WebForms or MVC. When you write an aspx/ascx/master file (I’ll just say aspx for here on, but it applies to all), it gets compiled dynamically by the ASP.NET runtime...
  • Blog Post: Take your MVC User Controls to the next level

    Note: this is based on ASP.NET MVC 2 RC , and will not work on earlier builds.   The quick pitch: make your User Controls as cool as built-in render helpers! The goal of this post is to show you how to change the way MVC user controls are called from something like this: <%= Html.Partial("...
  • Blog Post: T4MVC 2.6.10: fluent route value API, shorter way to refer to action, and more

    To get the latest build of T4MVC: Go to T4MVC page on CodePlex I just posted build 2.6.10. There were also a few builds in between since I last blogged about 2.6, so this post describes some of those changes (full history here ). Fluent route value API As you probably know, T4MVC uses a pattern...
  • Blog Post: Passing anonymous objects to MVC views and accessing them using dynamic

    Note (12/22/2011): now that MVC 3 has direct support for dynamic, the technique below is no longer necessary. This post is in fact what led to integrating the feature into MVC! First, I’ll start with a little disclaimer: this post is not about whether using dynamic is better/worse than static...
  • Blog Post: T4MVC 2.6: MVC 2 Areas support

    To get the latest build of T4MVC: Go to T4MVC page on CodePlex One of MVC 2's major new features is the support for breaking up a large application into "Areas". This works by following a structure that looks like: Root folder Models Views Controllers Areas NerdDinner...
  • Blog Post: T4MVC now has a real home and a dedicated forum!

    Up until now, most things related to T4MVC were happening through my various blog posts about it.  And while that was sort of working ok for a while, it was also less than ideal for a couple reasons. First, there was no single place to go to in order to get information about it.  You’d basically...
  • Blog Post: T4MVC 2.5.01: added support for Html.RenderAction and Html.Action

    To get the latest build of T4MVC: Go to T4MVC page on CodePlex MVC 2 Beta introduces two nice helpers called Html.RenderAction and Html.Action. Phil Haack described them in detail on his blog , so you may want to read through that before reading this post. Basically, they’re two additional methods...
  • Blog Post: T4MVC 2.5.00 update: multiple output files and minified javascript support

    To get the latest build of T4MVC: Go to T4MVC page on CodePlex T4MVC build 2.5.00 brings a couple of fun new features that I’ll describe in this post. I can’t take too much credit for them as they came from users who suggested them to me, and helped out getting the code going. Support for multiple...
  • Blog Post: Peter Blum’s new blog and his cool new data source controls

    Peter Blum has been well known is the ASP.NET world for many years for writing a whole suite of powerful controls, which you can read all about on his site .  One thing that was missing on Peter’s resume is that he never had a blog.  Well he started one earlier this month, and is making up...
  • Blog Post: Using C# dynamic to call static members

    By now, you’ve probably heard that C# 4.0 is adding support for the dynamic keyword, which introduces some aspects of dynamic languages to C#. I had not had a chance to really try it, but recently I was reading Bertrand Le Roy’s post on the topic, and was sort of looking for a good opportunity...
  • Blog Post: T4MVC 2.4.04 update: MVC 2 support, new settings, cleanup, fixes

    To get the latest build of T4MVC: Go to T4MVC page on CodePlex Though I haven’t blogged for a while about T4MVC, I’ve been making a few minor updates and only sent notification via Twitter. Now, I have a few things that are worth discussing in a little more detail. Note that you can see the complete...
  • Blog Post: T4MVC 2.4 updates: settings file, sub view folders, ActionName support and more

    To get the latest build of T4MVC: Go to T4MVC page on CodePlex This post is a continuation of various previous posts on the T4MVC template for ASP.NET MVC: A new and improved ASP.NET MVC T4 template The MVC T4 template is now up on CodePlex T4MVC 2.2 update: Routing, Forms, DI container...
  • Blog Post: Using an Associated Metadata Class outside Dynamic Data

    A while back, I blogged about how ASP.NET Dynamic Data apps can uses an Associated Metadata class (aka a ‘buddy’ class) to add metadata attributed to properties defined in a generated class. It’s a mostly ugly thing that was made necessary by limitations of the C# and VB.NET languages: they don’t let...
  • Blog Post: Two ways to use T4 templates: support code vs. one-time generation

    T4 templates have proven to be useful is a whole range of scenarios, and more and more developers are finding interesting things to do with them. For the most part, all those scenarios fall under two very distinct categories: “support code” versus one-time generation.  Unlike my previous post on...
  • Blog Post: AspPathGuru: A little T4 love for ASP.NET WebForms

    Last month , I wrote a number of posts on using T4 templates to get strong typing in ASP.NET MVC applications. The result is the T4MVC template available on CodePlex . This template has been pretty popular with many MVC users, and I received a huge amount of feedback on improving it. Most of it has been...
  • Blog Post: T4MVC 2.2 update: Routing, Forms, DI container, fixes

    To get the latest build of T4MVC: Go to T4MVC home page This post is a continuation of various recent posts, most notably: A new and improved ASP.NET MVC T4 template The MVC T4 template is now up on CodePlex First, I’d like to thank all those who are using the MVC T4 template and sent...
  • Blog Post: The MVC T4 template is now up on CodePlex, and it does change your code a bit

    Short version : the MVC T4 template (now named T4MVC) is now available on CodePlex, as one of the downloads in the ASP.NET MVC v1.0 Source page . Go to T4MVC home page Poll verdict: it’s ok for T4MVC to make small changes Yesterday, I posted asking how people felt about having the template modify...
Page 1 of 3 (57 items) 123