Inheriting From BaseValidator to Make Custom Validation Controls

For months now, I’ve been desperate for a decent excuse to make a custom ASP.NET server control, so I was secretly pleased today when a CustomValidator originally coded for use on a single page was required elsewhere. It’s surprisingly easy to do, although it took me a while to find a decent example online, which eventually came courtesy of the 4GuysFromRolla. In my particular scenario, I needed to check that the text entered into a TextBox did not equal any of a selection of “banned” strings (which was available via a static property on another class). ...

30 June 2004

Here We Go Again

Once more into the breach, dear friends. Six years since my navel-gazing online journal, why start a blog? For no better reason than I can, and it’s so easy now, and I really do need something to fill the void at ianfnelson.com. I vaguely considered writing my own blogging software in ASP.NET, but then I found .Text and realised that there was no point wasting my days reinventing the wheel – .Text is sufficiently open and customisable for my purposes. Besides, I have plenty other challenges to occupy my days – a rework of the Filthy Lucre Investment Club site, a site to host our wedding plans (not to mention actually planning the wedding!), Millie’s site, etc. ...

28 June 2004