The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Populating Dropdown list in ASP.NET MVC 2 using Entity Framework 4
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

vineet sharmaPosted Nov 1, 2014, 8:21 AM
awesome bhai.
zakir hossanPosted Oct 24, 2013, 12:02 AM
Thanks, But I want to save the data which in the drop down list into another Table of same database through Create view . How Can I do That? Please help...
Tshering PhuntshoPosted Jan 26, 2012, 12:45 AM
the article thatou have posted has really helped me a lot. now my problem is that how can i retrive the id or value from the selected item from dropdowlist and store it in the database.
sanu palPosted Sep 6, 2011, 4:00 AM
Kumar Saurabh your article helps me to shortout my problem, i m new in mvc . Thanks
JoePosted Aug 13, 2011, 3:24 AM
Hi, Can you write about how to fill dropdown in controller? instead of '<%:Html.DropDownListFor(m=>m.ddlStateID,Model.StateValue) %>' fill Dropdownlist in controller. Thanks.
saul aquinoPosted Aug 2, 2011, 11:11 AM
solve it, all you needed was to add: <PopulatingDDLusingEF.ViewModels.IndexViewModel> to the master page, would look like: <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<PopulatingDDLusingEF.ViewModels.IndexViewModel>" %> a good tutorial, thanks =)
saul aquinoPosted Aug 2, 2011, 10:49 AM
Hello friend, sorry for the inconvenience, but I get error at the hearing, the line to add: <%: Html.DropDownListFor (m => m.ddlStateID, Model.StateValue)%> error StateValue Could you please help me.
Sahil JaniPosted Mar 7, 2011, 12:24 AM
Thanks for giving this article. Its realy very help-full.
ashutosh kumarPosted Feb 18, 2011, 1:29 AM
Thanks, it helped