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

Chittaranjan SwainRank #216 · 11.3K reputationPosted Aug 19, 2019, 1:27 AM EDT
Sagar MaldeRank #2,097 · 684 reputationPosted Aug 19, 2019, 3:56 AM EDT
Mark TaborRank #914 · 2.3K reputationPosted Aug 19, 2019, 7:21 AM EDT
Bidyasagar MishraRank #766 · 3K reputationPosted Aug 19, 2019, 4:13 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Aug 19, 2019, 5:21 PM EDT
Bidyasagar MishraRank #766 · 3K reputationPosted Aug 19, 2019, 6:17 PM EDT
Mark TaborRank #914 · 2.3K reputationPosted Aug 19, 2019, 6:38 PM EDT
instead of Designation_ID i put model=>model.Designation , Now it is getting the correct value but when submitting the for i am getting this error message as shown below.
Junaid ShahidRank #436 · 5.7K reputationPosted Aug 19, 2019, 9:08 PM EDT
pubic int DesignationId {get;set;}
Sonu GuptaRank #1,261 · 1.4K reputationPosted Aug 19, 2019, 9:29 PM EDT