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
Uday Bhan Singh
NA
314
41.2k
how to use dropdown in asp.net mvc 4
Oct 13 2016 7:14 AM
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>
Reply
Answers (
3
)
Rowspan in repeater using asp.net C#
Closedxml.excel how to change the forecolor depend upon cond