Microsoft
70-515 · 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…
The correct answer is C. Set the ClientIDRowSuffix attribute of each unique GridView control to a different value. See the full explanation below for the reasoning.
Question
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 pa to another. What should you do?
Options
- AReplace the GridView control with a ListView control.
- BSet the ClientIDMode attribute to Predictable in the web.config file.
- CSet the ClientIDRowSuffix attribute of each unique GridView control to a different value.
- DSet the @ OutputCache directive's VaryByControl attribute to the ID of the GridView control.
How the community answered
(25 responses)- A16% (4)
- B4% (1)
- C76% (19)
- D4% (1)
Community Discussion
No community discussion yet for this question.