Rahul Khanna

Rahul Khanna

  • NA
  • 236
  • 0

Need help in Repeated question with different answer

Sep 28 2011 12:24 PM

Hi all,

I am preparing for .net 4 certification exams. In the PDF same question has been repeated twice with different answer. Can somebody please confirm which one is correct??


QUESTION 1
You are implementing an ASP.NET application that uses data-bound GridView controls in multiple pages. You add JavaScript code to periodically update specific types of data items in these GridView controls. You need to ensure that the JavaScript code can locate the HTML elements created for each row in these GridView
controls, without needing to be changed if the controls are moved from one page to another. What should you do?

A. Replace the GridView control with a ListView control.
B. Set the ClientIDMode attribute to Predictable in the web.config file.
C. Set the ClientIDRowSuffix attribute of each unique GridView control to a different value.
D. Set the @ OutputCache directive's VaryByControl attribute to the ID of the GridView control.

Answer:C

QUESTION NO: 5
You are implementing an ASP.NET application that uses data-bound GridView controls in multiple pages. You add JavaScript code to periodically update specific types of data items in these GridView controls. You need to ensure that the JavaScript code can locate the HTML elements created for each row in these GridView controls, without needing to be changed if the controls are moved from one page to another. What should you do?

A. Replace the GridView control with a ListView control.
B. Set the ClientIDMode attribute to Predictable in the web.config file.
C. Set the ClientIDRowSuffixattribute of each unique GridView control to a different value.
D. Set the @ OutputCache directives VaryByControl attribute to the ID of the GridView control.


Answer: B



Answers (1)