Welcome to MSDN Blogs Sign in | Join | Help

November 2008 - Posts

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

Attachment(s): Details.zip

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

Attachment(s): DynamicDataWithUserControls.zip

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.
Posted by davidebb | 12 Comments
Filed under:

Attachment(s): FileLevelControlBuilder.zip

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

Attachment(s): ProcessGeneratedCodeTestSite.zip
 
Page view tracker