Archive for July, 2009

Themes and CSS

Folders inside the Theme folder in ASP.NET web sites can contain skin files, CSS files, images and text files. These folders are automatically compiled into classes so the names of folders should not conflict with class names already in use.
Here are several rules for the use of Themes:
Skin files should be replaced by CSS files, [...]

Validation Controls

I listed a few tips below for the proper use of validation controls.
Validation controls can be use with any other control that has the ValidationProperty attribute.
Check the value of Page.IsValid in the Page_Load method to test the values of all the Validation controls on the page.
There are six Validation Controls: RequiredFieldValidator, RangeValidator, CompareValidator, RegularExpressionValidator, [...]