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
Mark Tabor
587
2k
460.6k
how to send a dropdown value to controller in mvc5
Aug 19 2019 5:14 AM
As i have my view in razor and it is strongly type view so without using dropdownlistfor it is not getting the value and shows 0 all the time on post.
so i need to use dropdownlistFor
@Html.DropDownList("Designation_Id", new SelectList(ViewBag.Designation, "Designation_Id", "Designation_Text"), "Please select", new { @id = "ddlDesignation", @class = "btn form-text" })
how can i write the above state for dROPDOWNLISTFOR or can i send the value of dropdown using dropdownlist to the controller as my controller is taking an object class like below kindly assits me
Reply
Answers (
9
)
Cannot access website through Server
how to popup gridview from text box search in asp.net