Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
How to Implement The DataAnnotions in mvc for DropDown List
Venkata Subbareddy
Nov 4 2015 6:21 AM
651
Reply
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
how to connect team project in .net vs2013
how to enter math. equation in text box