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
أماني مفيد
NA
142
17.4k
bind a viewdata inside dropdown list
Sep 28 2020 7:38 AM
i wanna bind a viewdata inside dropdown list ,
i use this way
@Html.DropDownListFor(model => model.First().KEYWORD_NAME, ViewData["KEYWORD"] as IEnumerable<SelectListItem>, "Select Company Name", new { @class = "form-control" })
but i have this error :
System.ArgumentNullException: 'Value cannot be null.
Parameter name: source
i don't have any parameter with name source ?
i debug the project and i checked that the view data have data inside it
how i can fix it ?
Reply
Answers (
3
)
Is it possible to use Ajax without passing parameters
pass value of drop down list from view to controller