Microsoft
70-515 · Question #191
70-515 Question #191: Real Exam Question with Answer & Explanation
Sign in or unlock 70-515 to reveal the answer and full explanation for question #191. The question stem and answer options stay visible for context.
Question
You have a C# code snippet with 2 classes, one composed by elements of the other. Something like 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.
Options
- Abind rptStudents with the list of current item in SupervisorsList using the ItemDataBound
- Bbind rptStudents with the list of current item in SupervisorsList using the ItemCommand
- Cdatabinding directly the rptStudents in the page load or something dummy like that
- Danother dummy solution involving a "supervisors have all the same students" situation
Unlock 70-515 to see the answer
You've previewed enough free 70-515 questions. Unlock 70-515 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.