Which of the following allows you to bind control property values to data and specify values for retrieving, updating, deleting, and inserting data?

Which of the following allows you to bind control property values to data and specify values for
retrieving, updating, deleting, and inserting data?

Which of the following allows you to bind control property values to data and specify values for
retrieving, updating, deleting, and inserting data?

A.
TemplateControl class

B.
DataBinder class

C.
Data binding syntax

D.
Binding markup extension

Explanation:
The data binding syntax allows you to bind control property values to data and specify values for
retrieving, updating, deleting, and inserting data.
Answer A is incorrect. The TemplateControl class supplies the Page and the UserControl classes
along with a base set of functionality. It is an abstract class that supplies common properties and
methods for the Page and the UserControl classes.
However, it is not possible to create a new instance of the TemplateControl class directly. It defines
the following methods supporting declarative data-binding expressions:
The Eval method is used for data binding expression involving data sources.
The XPath method is used for parsing and evaluating an XPath data binding expression.
The XPathSelect method is used for data binding alongside an expression holding an XPath select
statement. The outcome is a node collection that implements the IEnumerable interface.
Answer B is incorrect. The DataBinder class provides support for Rapid Application Development
(RAD) designers to produce and parse data binding expression syntax. A user can utilize the
overloaded static Eval method of the DataBinder class in data binding syntax of an ASP.NET Web
page. This provides a simple syntax instead of standard data binding syntax. The DataBinder.Eval
method supports automatic type conversion, but it can result in slower performance. The
DataBinder class cannot be inherited.
Answer D is incorrect. Binding markup extension is used to provide a data-bound property value
such that the value is delayed until runtime. A binding markup extension is converted into an
intermediary expression object at XAML lead-time. Both the expression and the data context are
used by the Silverlight binding engine to find out the property value at runtime.



Leave a Reply 0

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