.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Validating multiple email address in a textbox

Posted By: Anup     Posted Date: December 11, 2009    Points:2   Category :ASP.Net
Hi,

I am developing an Email module.

I have a single textbox, which i converted into multiline & Now Users will enter multiple email address in this textbox & will click the send button, to send the email.

What i want is Valiadtion code for multiple email address which is in single textbox.


Thanx
- Anup

Responses
Author: Amit Mehra             
Posted Date: December 12, 2009     Points: 5   

Hi Anup,

you can use regular Expression Validator control in your asp.net page and set the validation expression to this

^(\s*;?\s*[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})+\s*$


NOTE: The above regular expression is accepted semicolon seperated email value if you want any other delimeter you can put the one

Thanks
Amit

Thanks,
Amit
Please "Mark As Answer " if this post help you.
Author: Lincy Lucy             
Posted Date: December 14, 2009     Points: 5   

Check this url
http://www.dotnetspider.com/forum/233551-Validating-multiple-email-address-by-server-side-asp-net.aspx




With regards
Lincy Lucy From Goa

Check out my blog for wallpapers of celebrities.
http://likecelebrities.blogspot.com/

With regards
Lincy Lucy
Exclusive offers & Discount on each order.Come and visit the beauty of God's Own Country


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend