PrepAway - Latest Free Exam Questions & Answers

We understand that we need a list of supervisors and sublists of their relative students.

You have a C# code snippet with 2 classes, one composed by elements of the other.
public class Student
{
public string Name {get;set;}
}
public class Supervisor
{
public string name {get;set;}
public List<Student> {get;set;}
}
And a markup code snippet, with 2 repeaters imbricated + a ObjectDataSource retrieving a list of
Supervisors, the top level repeater “rptSupervisors” is bound using ObjectDataSourceID to the
ObjectDataSource, and the inside one “rptStudents” is not bound yet. We understand that we need
a list of supervisors and sublists of their relative students.

PrepAway - Latest Free Exam Questions & Answers

A.
bind rptStudents with the list of current item in SupervisorsList using the ItemDataBound event of
the rptStudents repeater

B.
bind rptStudents with the list of current item in SupervisorsList using the ItemCommand event of
the rptSupervisor repeater

C.
databinding directly the rptStudents in the page load or something dummy like that (don’t
remember exactly)

D.
another dummy solution involving a “supervisors have all the same students” situation


Leave a Reply