Hiii,
i wants to make one form that has two radio button for selecting male & female and having drop down of city that i wants to make using code first approach of EF in MVC so how can i do? plz explain every part so i under stand
i have write code
public int ID{get;set;}
public string Name{get;set;}
public string gender{get;set;}
public string Address{get;set;}
public string city{get;set;}
public int phone{get;set;}
now when i run this MVC application database created and having drop down in view but i have no idea so plase give me proper way so i have drop down
of city and radio button of gender category.


ramya bharathRank #3,780 · 391 reputationPosted Apr 17, 2015, 4:07 PM EDT
Html dropdownlist for ("gender", new List ("male","female")
Similar way you can do for cities if you have a defined list, else refer to this big picture of how to create a city list
http://www.c-sharpcorner.com/UploadFile/4d9083/creating-simple-cascading-dropdownlist-in-mvc-4-using-razor/
ramya bharathRank #3,780 · 391 reputationPosted Apr 17, 2015, 4:09 PM EDT
Vijay Saklani147 reputationPosted Apr 24, 2015, 10:35 PM EDT
Visit the below given link. It helps you.
Dropdownlist in mvc