Hi, Here is the code that can be used on cshtml pages @Html.DropDownListFor(model => model.movietypeID, new SelectList(Model.movietypes, "Key", "value"), "--Select--") You need to bind the movietypes variable as a dictionary from the database. On the time of editing, you need to fetch the value of movie type selected at the time of creation and assign it to movietypeID, and again you will have to bind the movietypes variable from the database.
D
Deepanshu Goel
@Deepanshu Goel
Posts
-
dynamic dropdown select list -
Where should I store credentialsHi Nico, You can store the credentials in SQL Database. They can be secured by using Hash encryption (one way encryption).