TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Vatsal Desai
NA
51
11.2k
Make Dropdown using code first approach in mvc
Apr 17 2015 11:46 AM
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.
Reply
Answers (
3
)
HttpApplication and HttpModules
Edit model in MVC