I have multiple dropdownlists in the same view, each will be filled from one table in the database. How this can be done? I tried ViewBag, but the data returned is null.( I found that the reason is that the ViewBag is per request) I tried ViewData, but an error is thrown, saying that the returned model type is not as the expected.
Aucun commentaire:
Enregistrer un commentaire