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
530
2.4k
598k
how to set min 10 number for mobile number validation?
Apr 12 2017 3:09 AM
I am using this regular expression for mobile number,
[Required(ErrorMessage =
"Required"
)]
[DataType(DataType.PhoneNumber)]
[RegularExpression(@
"^[\+\d]+(?:[\d-.\s()]*)$"
, ErrorMessage =
"Not a valid Mobile number"
)]
public
string
MobileNumbers {
get
;
set
; }
But not happening validation when enter less than 10 min number.
And for email validation,
[Required(ErrorMessage =
"Required"
)]
[EmailAddress(ErrorMessage =
"Invalid Email Address"
)]
public
string
EmailIDs {
get
;
set
; }
But this is not working when enter look like this,
How can I solve this issues? please help me...
Reply
Answers (
2
)
Is it possible to retrieve and show view name dynamicallyMVC
How to Display Details in Bootstrap Modal popup in MVC