|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Regular Expression HelpHello,
We have a textbox on a web form (ASP.NET 2.0 - C#) that is for end-users to enter e-mail address(es). The valid entries are: n***@company.com na***@company.com;na***@company.com;na***@company.com (notice no space after the semicolon) na***@company.com; na***@company.com; na***@company.com (notice the space after the semicolon) Basically, the user can enter 1 e-mail address or more than 1 e-mail address separated by a semicolon. Can the RegularExpressionValidator control handle this situation? If not, is there another way to validate this? Thanks! To avoid obfuscating the code, I would do this custom. As in split on
all the e-mail separators (most people allow for space, camma, semicolor, and new line) and then regexp against each. If one fails, they all fail.
ASP.NET 2.0 Menu Control - DynamicEnableDefaultPopOutImage Property
Understanding query strings CSS class for a div tag Referencing controls in a template programmatically Control.Controls bug? Control's child controls missing at the run time. Tree View DragNode Datagrid empty data hides header asp button click handler Master Detail w Multiple Keys Events not fired for Dynamically Created Controls in VS2005 ASP.NET 2.0 |
|||||||||||||||||||||||