Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
how to use dropdown in asp.net mvc 4
Udaybhan Singh
Oct 13 2016 7:14 AM
363
Reply
how to use dropdown in asp.net mvc 4. i get this error after click on save button.
There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'CountryID'
my code is this .
<td></td><td>@Html.DropDownListFor(model => model.CountryID, ViewBag.Countries as IEnumerable<SelectListItem>, new { @class = "anyclass" })</td>
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
Rowspan in repeater using asp.net C#
Closedxml.excel how to change the forecolor depend upon cond