You need to design a solution for accessing the shopping cart controls by using JavaScript.
Which configuration should you recommend?
A.
Use <%= control.ID %>.
B.
Use <%= control.ClientID %>.
C.
Use ClientIDMode=”AutoID”.
D. Use ClientIDMode=”Predictable”.
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. Forthe 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 (_).
http://msdn.microsoft.com/en-us/library/system.web.ui.clientidmode.aspx