Author Archive
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, [...]
Cookie Basics
Cookies are a basic feature of ASP.NET, and are automatically implemented when Forms Authentication is configured for your web site. Cookies usage can be configured through the ‘Cookieless’ setting of Forms Authentication in the web.config page. On a security note, you should never ask a user if they want their info persisted (”Remember me Next [...]
ViewState Viewers
Developers have several methods to view the ViewState payload. The easiest route is to use the Trace settings supplied by ASP.NET either in the web.config file or inserting Trace=”true” in the Page directive of the page you want to examine.
Fritz Onion of PluralSight.com has a tool to decode the ViewState called appropriately ViewState Decoder. [...]
