articles
Check out the sourcemotion blog for Steve's latest articles on C# web development.
Using the ASP.NET CompareValidator control to validate date input
Stumbled across this tip the other day:
http://dotnettipoftheday.org/tips/validate-format-of-integer-double-date-currency.aspx
It turns out that you can validate date inputs with a CompareValidator by setting the Operator property to DataTypeCheck and ValidationDataType to Date (or Integer, Double, Currency, etc.).
This was a new one on me, I had always assumed that the CompareValidator was ...
Comparing Linq with SubSonic
After seeing Subsonic in action in the dashCommerce project (Open Source ASP.NET eCommerce application) I have used it in a couple of projects and I like it. It's easy to get up and running, has an intuitive object model and a handy Scaffold component for getting a data admin interface put together quickly. It stands up well compared to other .NET DALs I have used in the past e.g. NEO which I ...
CSS Image Replacement Techniques
Web designers like to use images for text because they can use non-standard fonts and have them nicely anti-aliased. There are a number of techniques out there that allow you to make this kind of image text accessible and search-engine friendly.One technique I have seen used is a negative text-indent (see http://phark.typepad.com/phark/2003/08/accessible_imag.html).For example, if you wanted to ...