TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Abhilash J A
533
2.4k
598k
how to email verification in c#?
Feb 28 2017 4:17 AM
Hello everyone,
I am working on MVC 5, I want to verify Email ID.
1) I am now validating email addres using jquery.
function
isEmail(email) {
var
regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
return
regex.test(email);
}
2) And checking the email id is existing or not inside database.
[HttpPost]
public
bool
UserEmailIDExist(
string
emailid)
{
if
(IsValidEmail(emailid) ==
true
)
{
PartnerBIL partnerBIL =
new
PartnerBIL();
return
partnerBIL.SearchCompanyname(emailid);
}
else
{
return
true
;
}
}
public
bool
IsValidEmail(
string
email)
{
/*Here, Which code I use for validate email id?*/
}
Also I want to verify the email id is valid online, how can I do that?
Please help me...
Reply
Answers (
9
)
Display product' Data on website .
Post all ListBox Item values View to Controller