Hi Ainguahj,
Check this example. Now please take its reference and correct your code.
Enum
public enum Status
{
False = 0,
True = 1
}
Model
public class User
{
public int Id { get; set; }
public string Name { get; set; }
public string Status { get; set; }
}
Controller
public class HomeController : Controller
{
// GET: /Home/
public ActionResult Index()
{
User user = new User();
return View(user);
}
public ActionResult Save(User user)
{
return View("Index", user);
}
}
View
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<_DropDown_Enum_MVC.Models.User>" %>
<%@ Import Namespace="_DropDown_Enum_MVC" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Index</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" />
</head>
<body>
<div>
<% using (Html.BeginForm("Save", "Home")) {%>
<%: Html.DropDownListFor(m => m.Status, new SelectList(Enum.GetValues(typeof(Status))), "Select Status", new { @class = "form-control" })%>
<br /><input type="submit" value="Save" class="btn btn-primary" />
<% } %>
</div>
</body>
</html>
Screenshot
