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
Venkata Subbareddy
991
774
100k
How to Implement The DataAnnotions in mvc for DropDown List
Nov 4 2015 6:21 AM
Hi All ,
This Is model
[Required(ErrorMessage = " Please Select The Country Name.")]
public string CountryName { get; set; }
This is view
@Html.DropDownListFor(m => m.CountryId, new SelectList(Model.CountryList, "Id", "Name"), new { @class = "form-control", placeholder = "Select Country", @autofocus = "autofocus" })
i try apply DataAnnonations dropdown list , but not working Where Iam Doing please give suggestions
Reply
Answers (
1
)
how to connect team project in .net vs2013
how to enter math. equation in text box