I am getting error while binding the dropdownlist help me

I am getting error while binding the dropdownlist help me

Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh KumarRank #91 · 22.9K reputationPosted Dec 6, 2022, 3:13 AM EST
Hello Likhith Kumar,
Please refer this one,
https://www.c-sharpcorner.com/UploadFile/3d39b4/creating-a-dropdownlist-for-enums-in-Asp-Net-mvc/
Vishal YelveRank #178 · 13.6K reputationPosted Dec 7, 2022, 1:22 AM EST
For MVC v5.1 use Html.EnumDropDownListFor
For MVC v5 use EnumHelper
For lower
var enumData = from eDeptment e in Enum.GetValues(typeof(Department)) select new { ID = (int)e, Name = e.ToString() };ViewBag.EnumList = new SelectList(enumData,"ID","Name");Amit MohantyRank #112 · 20K reputationPosted Dec 5, 2022, 11:55 PM EST
Check the below links
http://www.codedigest.com/posts/36/how-to-bind-or-populate-enum-to-dropdownlist-for-listitem-in-aspnet-mvc
https://www.c-sharpcorner.com/UploadFile/f1047f/bind-enum-to-dropdownlist-in-Asp-Net-mvc/
Likhith Kumar117 reputationPosted Dec 6, 2022, 1:53 AM EST
PRINT REPRINT var $select = $('#PrintType').selectize(); var control = $select[0].selectize; control.clear(); var IP_PrintType = $('#PrintType').val();