i have a @Html.DropdownlistFor
dropdownlist. I need to add default value to it. Here I give that dropdown default name as a cash I need to give it an option value here.
Name : CASH Value : -1
Here is my Code
@Html.DropDownListFor(m => m.Customer_Supplier_CustomerSupplierId, (SelectList)ViewBag.ListOfCustomers, "CASH", new { placeholder = "CustomerName", id = "CustomerName", @class = "form-control" })