Contents tagged with ASP.NET 4
-
Content Injector for ASP.NET MVC
-
AdvancedFormatProvider: Making string.format do more
When I have an integer that I want to format within the String.Format() and ToString(format) methods, I’m always forgetting the format symbol to use with it. That’s probably because its not very intuitive.
-
Introduction to Business Rules on individual DataFields
This series looks at the Business Logic Layer of an application from how my Peter’s Business Logic Driven UI (“BLD”) implements it. Use the “Understanding the BLL” Category to see all articles.
-
How BLD differs from ASP.NET Dynamic Data
ASP.NET Dynamic Data is a technology in ASP.NET 3.5 and higher that attempts to solve the same problem as Peter’s Business Logic Driven UI (“BLD”). In fact, BLD’s origins were as an extension to Dynamic Data.
-
User Controls and the Publish Web Site command
Visual Studio 2010’s Publish Web Site command offers the option “Allow this precompiled site to be updatable”. When used and your application has User Control (.ascx) files, the published application no longer contains your user controls! Instead, the \bin folder contains new files ending in the .compiled extension, one for each User Control. Your User Controls still work though, just through some hidden behaviors that I will discuss here.
-
More with ajax control toolkit’s combobox and Modalpopupextender
One idiosyncrasy of the ModalPopupExtender is that its HTML content is actually visible while the page is loading, until the $create() call initializes it. If you have a lengthy load time, as I did with a ListView full of records, the visibility is noticeable.
-
Exploring Dynamic Data: Other attributes for business logic
-
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.