You have a C# code snippet with 2 classes, one composed by elements of the other.

You have a C# code snippet with 2 classes, one composed by elements of the other.
Something like

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.
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

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.