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
Guest User
Tech Writer
2.1k
473.5k
How to bind form fields using data-annotation?
Jun 16 2020 9:06 AM
Hi Team
I have this model and want to bind form field using data-annotation. My problem i cant seem to bind them as once, using one error. Anyone who can help me on this please? Example is on my screenshot view of the form.
[Required]
public
string
StreetAddress {
get
;
set
; }
[Required]
public
string
StreetAddressLine {
get
;
set
; }
[Required]
public
string
City {
get
;
set
; }
[Required]
public
string
StateProvince {
get
;
set
; }
[Required(ErrorMessage =
"This field is required"
)]
public
int
ZipCode {
get
;
set
; }
Reply
Answers (
1
)
Error Code:0x8007007B Microsoft Plus activation fails?
Can not load local resources