nerdexam
Microsoft

70-515 · Question #166

You are implementing an ASP.NET page that will retrieve large sets of data from a data source. You add a ListView control and a DataPager control to the page. You need to ensure that the data can be…

The correct answer is B. Set the DataPager control's PagedControlID property to the ID of the ListView control. See the full explanation below for the reasoning.

Question

You are implementing an ASP.NET page that will retrieve large sets of data from a data source. You add a ListView control and a DataPager control to the page. You need to ensure that the data can be viewed one page at a time. What should you do?

Options

  • ASet the DataPager control's PageSize property to the number of rows to view at one time.
  • BSet the DataPager control's PagedControlID property to the ID of the ListView control.
  • CIn the code-behind file, set the DataPager control's Parent property to the ListView control.
  • DIn the code-behind file, set the ListView control's Parent property to the DataPager control.

How the community answered

(60 responses)
  • A
    7% (4)
  • B
    80% (48)
  • C
    3% (2)
  • D
    10% (6)

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice