What should you recommend?

You are designing an ASP.NET Web application.
A page of the Web application will contain a databound ListView control.
You need to recommend a strategy for accessing individual rows within the ListView control from client-side script based on the value in a specific data field.
What should you recommend?

You are designing an ASP.NET Web application.
A page of the Web application will contain a databound ListView control.
You need to recommend a strategy for accessing individual rows within the ListView control from client-side script based on the value in a specific data field.
What should you recommend?

A.
On the @ Page directive, set the AspCompat property to True and set the ClientIDMode property to Predictable.

B.
On the @ Page directive, set the SmartNavigation property to True and set the ClientIDMode property to AutoID.

C.
On the ListView control, set the ClientIdMode property to Static and set the ClientIdRowSuffix property to the name of the data field.

D.
On the ListView control, set the ClientIdMode property to Predictable and set the ClientIdRowSuffix property to the name of the data field.

Explanation:
Predictable This algorithm is used for controls that are in data-bound controls. The ClientID value is generated by concatenating the ClientID value of the parent naming container with the ID value of the control. If the control is a data-bound control that generates multiple rows, the value of the data field specified in the ClientIDRowSuffix property is added at the end. For the GridView control, multiple data fields can be specified. If the ClientIDRowSuffix property is blank, a sequential number is added at the end instead of a data field value. Each segment is separated by an underscore character (_).



Leave a Reply 0

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