أماني مفيد

أماني مفيد

  • NA
  • 142
  • 17.3k

DropDownListFor in MVC

Feb 14 2021 10:23 AM
Hi ,
 
i have dropdownlist (MVC Razor page )  as bellow
@Html.DropDownListFor(model => model.Contant.KEYWORD_NAME, ViewData["KEYWORD_NAME"] as IEnumerable<SelectListItem>, "select the compnay", new { @class = "form-control" })
   after i reteun view the selected value from dropdownlist changed to other value not selected 
how i can keep the selected value after return view 
 
 

Answers (1)