Tuesday, July 26, 2005

Make an ExtenderProvider to validate TextBoxes With RegEx in VB .NET

VB Helper: HowTo: Make an ExtenderProvider to validate TextBoxes by using a regular expression in VB .NET

"This example shows how to make an ExtenderProvider to validate TextBoxes by using a regular expression in VB .NET. The provider catches its clients' Validating events and verifies that the values satisfy the expression."

This is a cool usage of ExtenderProviders and RegEx... I don't use Extenders enough, even though they are pretty cool.

I guess it's time to look into changing that (Poof! I'm now Extender Man!... Um... err... ... That doesn't sound... um... right... DEL DEL DEL :| )

1 comment:

Anonymous said...

On web pages, it's an annoyance to be forced to enter a value in a text box in a format dogmatically required by the web site. "Enter credit card number (do not include spaces or hyphens):" Screw that! I want to type the spaces, thankyouverymuch. You take them out!

It's the responsibility of the programmer/web designer to be generous in allowing variations in how humans enter text and forgiving of trifling input errors. This is especially true on web pages because most things that process text on the web (server-side Perl, PHP, client-side JavaScript) have rich regular expression functionality that make short shrift of input editing.

DR Index needs to be rewritten in .NET for this very reason.