Which of the following options establishes a connection between an ASP.NET web page control and
a data source?
A.
Data binding
B.
DataReader
C.
Data Conversion
D.
DataTemplate class
Explanation:
Data binding establishes a connection between an ASP.NET web page control and a data source.
Data binding is the process in which a connection between the application UI and business logic will
be established. The elements that are bound to the data reflect changes automatically if the binding
has the correct settings and the data provides the proper notifications when the data changes its
value. The underlying data can be automatically updated to reflect the change if an outer
representation of the data in an element changes.Answer B is incorrect. DataReader does not help in establishing a connection between an ASP.NET
web page control and a data source. DataReader is only a read-only representation of the data.
Data retrieved through the DataReader is forward-only, and once the data has been read, the
DataReader is closed. The only way to access the data again is by opening another DataReader.Answer D is incorrect. The DataTemplate class does not help in establishing a connection between
an
ASP.NET web page control and a data source. The DataTemplate class is used to describe the visual
structure of a data object. DataTemplate objects are mainly useful when binding an ItemsControl,
such as binding a ListBox to a whole collection. Without specific instructions, a ListBox is used to
display the string representation of the objects in a collection. DataTemplate can be used to define
the appearance of the data objects. The content of the DataTemplate becomes the visual structure
of the data objects.Answer C is incorrect. Data Conversion refers to the conversion of computer data from one format
to another and thus does not help in establishing a connection between an ASP.NET web page
control and a data source.