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
Pramana Adiputra
NA
1
562
Beginner MVC 5. Showing Data ?
Feb 20 2016 8:36 AM
Hi, i'm a beginner
I have 2 Models, Students.cs and University.cs
Students.cs :
public class Student
{
public int Id { get; set; }
public string Name { get; set; }
public int Age { get; set; }
public University University { get; set; }
public Language Language { get; set; }
}
public enum Language
{
EN,
BA,
BG,
ID
}
University.cs ;
public class University
{
public int Id { get; set; }
public string Name { get; set; }
}
I've created 2 students, when create it fill Name, Age, and Language.
I've also created 3 Universities, when create it only fill Name.
The questions are, how do i show universities choice on Students view after language ? How to retrieve its data from Universities table and show it into student details ?
and when create a student, after choose language, user can choose the university too.
Thanks.
Reply
Answers (
1
)
How to Save data in database in asp.net using ajax with stor
Getting an Error while adding a strongly typed view