Archives
-
Exploring Dynamic Data: Other attributes for business logic
-
Exploring Dynamic Data: Scaffolding attributes for business logic
-
Exploring Dynamic Data: Textual attributes for business logic
-
Exploring Dynamic Data: The DataTypeAttribute for Business Logic
-
Exploring Dynamic Data: Validation attributes for business logic
-
Exploring Dynamic Data: Article Index
This is the index to a series of articles, to be published periodically, about the elements of ASP.NET Dynamic Data. It focuses on specific technologies, especially the web controls you use to build a Dynamic Data-based web form. As the author of Peter’s Data Entry Suite, I have identified limitations and gaps in Dynamic Data which I will also discuss. My commercial solution resolves many of those limitations and gaps.
-
Reflection on a method with an out parameter
As I code my commercial Dynamic Data libraries for ASP.NET 4 support, I’ve elected to deliver one assembly compiled under .net 3.5 SP 1 that also supports new features of ASP.NET 4. 3.5SP1 is the initial release of Dynamic Data. To interact with the new properties and methods in ASP.NET 4, I am using .net Reflection.
-
The CategoryAttribute and Dynamic Data
The System.ComponentModel.CategoryAttribute has long been around. It’s generally used for annotating properties on web controls so that design mode’s Property Editor can organize your properties.
-
The CustomValidationAttribute
.net 4 introduces the CustomValidationAttribute, a member of System.ComponentModel.DataAnnotations that supports validation of your business logic. Until now, validation rules were limited based on the available attributes (required, stringlength, regex, and range) plus those you created by subclassing System.ComponentModel.DataAnnotations.ValidationAttribute. CustomValidationAttribute lets you define new validation rules directly on your Entity class (or the class of your choice) without having to subclass from ValidationAttribute.
-
Validating CheckBoxLists when using ClientIDMode=Predictable
A common question on the www.asp.net forums asks how to validate a CheckBoxList control. There are two cases:
-
The impact of ClientIDMode=Predictable
ASP.NET 4 introduces a new property on all controls: ClientIDMode. It lets web form developers minimize the size of the id= attribute written into HTML tags. It also helps them dictate the actual form of the ID, avoiding the mangled naming of previous versions when controls are inside of naming containers.