O'Reilly logo

Secrets of Real World ASP.NET Dynamic Data Web Sites by Craig Shoemaker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

1.3. Building Custom Field Templates

The field templates included in the default Dynamic Data template attempt to match UI functionality by data type. Custom field templates take the idea of representing data one step further and give you an opportunity to provide domain-specific behavior to each field.

Centralizing the UI elements for a single data member can yield many benefits. Instead of having to add validation controls on each and every page where user input is required, field templates can house the validators and use some simple logic to decide whether to enable validation constraints. Encapsulating the UI into field templates begins to give your ASP.NET application reusable building blocks to make creating and maintaining data-driven ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required