Class Student {
String Name {get; set}
//Extended property of the student
School Shooling {get; set;}
}
public StudentControlelr()
{
public SchoolInfo (int? ID)
{
Student s = StudentRepository.GetStudentByID(id)
Return View ("Schooling/Index", s.Schooling);
}
}
for some reason i have to make this view as a shared view
// Views/Shared/schooling.ascx
Return View ("Schooling", s.Schooling);
이 기능은 작동하지만 다른보기 폴더에서 작동하지 않는 이유는 무엇입니까? 여기에 뭔가 빠졌나요?다른 컨트롤러에서보기를 반환하는 방법
ASP.net 초보자 유의하시기 바랍니다.
친절 감사 인 Vinay