Email Expression Validator
-
Hi, I am using a regular expression validator to validate my email textbox but I was wondering if there is an expression that allows only a certain domain. This is what I'm using so far:
This works, but it allows any @abc.com and I only want to allow a specific address (i.e. only allow @yahoo.com).I'm using asp.net and c#. Thanks!
-
Hi, I am using a regular expression validator to validate my email textbox but I was wondering if there is an expression that allows only a certain domain. This is what I'm using so far:
This works, but it allows any @abc.com and I only want to allow a specific address (i.e. only allow @yahoo.com).I'm using asp.net and c#. Thanks!
validationexpression="^\w+[\w-\.]*\@DomainName.com" i hope this works
Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"