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:

  1. 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.

    ReplyDelete

NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...

ALL comments are moderated. I will review every comment before it will appear on the blog.

Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...

I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...

Please see my comment policy for more information if you are interested.

Thanks,
Greg

PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...