Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » MVC » ASP.NET   (RSS)

Passing anonymous objects to MVC views and accessing them using dynamic

First, I’ll start with a little disclaimer: this post is not about whether using dynamic is better/worse than static typing. Instead, it’s about making it more convenient to use dynamic if you choose to go that route . Clearly, some people dislike dynamic,
Posted by davidebb | 17 Comments
Filed under: , ,

Attachment(s): MvcDynamicViewPage.zip

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
Posted by davidebb | 11 Comments
Filed under: , , ,

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
Posted by davidebb | 5 Comments
Filed under: , , ,

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
Posted by davidebb | 11 Comments
Filed under: , , ,

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
Posted by davidebb | 9 Comments
Filed under: , , ,

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
Posted by davidebb | 8 Comments
Filed under: , , ,

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
Posted by davidebb | 34 Comments
Filed under: , , ,

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
Posted by davidebb | 6 Comments
Filed under: , ,

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
Posted by davidebb | 17 Comments
Filed under: , , ,

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
Posted by davidebb | 53 Comments
Filed under: , , ,

Mind if my MVC T4 template changes your code a bit?

Update : Please see this post for what came out of this ‘poll’, and for a pointer to the newest T4 template on CodePlex. When working on my MVC T4 template , I was not able to use reflection to discover the Controllers and Actions, because the code that
Posted by davidebb | 40 Comments
Filed under: , , ,

A new and improved ASP.NET MVC T4 template

Update : Please read this post for the newest and greatest. A couple weeks ago, I blogged about using a Build provider and CodeDom to generate strongly typed MVC helpers at runtime. I followed up a few days later with another version that used T4 templates
Posted by davidebb | 40 Comments
Filed under: , , ,

A T4 based approach to creating ASP.NET MVC strongly typed helpers

Update : Please see this newer post for the latest and greatest MVC T4 template   Earlier this week, I wrote a post on using a BuildProvider to create ActionLink helpers .  That approach was using CodeDom to generate the code, and there was
Posted by davidebb | 12 Comments
Filed under: , ,

Attachment(s): AspNetT4Bridge.zip

A BuildProvider to simplify your ASP.NET MVC Action Links

Update : Please see this newer post for the latest and greatest MVC T4 template   One downside of using Html.ActionLink in your views is that it is late bound.  e.g. say you write something like this: <% = Html.ActionLink( "Home"
Posted by davidebb | 26 Comments
Filed under: , ,

Attachment(s): MvcActionLinkHelper.zip
 
Page view tracker