Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Reply
MVC 4 issue dropdown chosen
Ferdinando
10 years ago
786
Reply
Hi,
I have a page razor with many drop down, the page takes a long time to render, due to certain dropdown with several items that are loaded from db.
Here the code of a dd:
@Html.LabelFor(model => model.CODICE_STATO_NASCTITA, "Stato di nascita")
<br />@Html.DropDownList("CODICE_STATO_NASCTITA", new SelectList(new HotelEntities().NAZIONI.ToList().Select(type => new { type.CODICE, type.DESCRIZIONE }), "CODICE", "DESCRIZIONE"), ":Seleziona:", new { @class = "chosen-select comboModerator" })
<br /> @Html.ValidationMessageFor(model => model.CODICE_STATO_NASCTITA)
Thanks
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
Populate TextBoxes From An AutoComplete TextBox
Create an one page web app like following