Two worlds of Dynamic Data customization: generic vs schema specific

There are many ways to customize a ASP.NET Dynamic Data site, which can sometimes be a bit overwhelming to newcomers.  Before deciding what customization makes sense for you, it is important to understand the two major buckets that they fall into: Generic customization: things that apply generically to any table/column. Schema specific customization: things that…

7

Time for a new useless blog subtitle

For the longest time, I had set my blog subtitle to “Dynamic Data and other ASP.NET topics”, which some might argue would not have won any originality contests.  On the bright side, it was a fine match for my equally original blog title: “David Ebbo’s blog”. So I went on a quest for a new…

2

Using Dynamic Data with multiple databases

Most Dynamic Data web sites typically only use a single database, with either a Linq To Sql or Entity Framework model over it.  But in some cases, you need your site to use multiple databases/models.  This came up today in this forum thread.  In fact, the original poster (Chris) is the one that came up…

15

Handling database exceptions in Dynamic Data

This post was prompted from a forum thread in which the user wanted to display database errors in a Dynamic Data page, instead of the default behavior that ends up with an unhandled exception (or an AJAX error with partial rendering). When using Linq To Sql, this can be done fairly easily in a couple…

9

Fun with T4 templates and Dynamic Data

T4 templates have been a pretty popular topic lately.  If you have no idea what they are, don’t feel bad, I didn’t either only a couple weeks ago!  In a nutshell, it’s a simple template processor that’s built into VS and allows for all kind of cool code generation scenario.  For a bunch of information…

15

Using User Controls as Page Templates in Dynamic Data

Dynamic Data has the concept of Page Templates, which are pages that live under ~/DynamicData/PageTemplates and are used by default for all tables.  Recently a user on the forum asked whether they could use User Controls instead of Pages for those templates. To me, this means potentially two distinct scenarios, and I tried to address…

9

Creating a ControlBuilder for the page itself

One user on my previous post on ProcessGenerateCode asked how he could associate a ControlBuilder not with a control, but with the page itself.  There is in fact a way to do it, and it’s another one of those things that have never really been advertized.  The trick is that instead of associating the ControlBuilder…

16

ProcessGeneratedCode: A hidden gem for Control Builder writers

If you’ve ever written any non-trivial ASP.NET control, you’re probably familiar with the concept of a Control Builder.  Basically, it’s a class that you associate with your control and that affects the way your control gets processed at parse time.  While ControlBuilder has been around since the ASP.NET 1.0 days, a very powerful new feature…

13

A ‘Many To Many’ field template for Dynamic Data

Update: the Many to Many template is now part of the default Dynamic Data project template (when using Entity Framework), so you should not need to download this template separately unless you’re on 3.5SP1   Unlike Linq To Sql, Entity Framework directly supports Many to Many relationships.  I’ll first describe what this support means. In…

48

Why posting questions to the forums beats private emails

While most of the Q&A about ASP.NET happens in the forums, I also receive a number of direct questions from users (and so do other people on the team).  In most cases, I try to convince the sender to post to the forums instead, and there are a couple of good reasons for it.  And…

10