Hi ,
i have dropdownlist (MVC Razor page ) as bellow
@Html.DropDownListFor(model => model.Contant.KEYWORD_NAME, ViewData["KEYWORD_NAME"] as IEnumerable, "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
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jose HernandezPosted Feb 19, 2021, 7:31 AM