Which of the following controls serve as a base class that defines the methods, properties, and
events common to all controls in the System.Web.UI.WebControls namespace?
A.
Server controls
B.
User controls
C.
Web controls
D.
Validation controls
Explanation:
Web controls serve as a base class that defines the methods, properties, and events common to all
controls in the System.Web.UI.WebControls namespace.Answer A is incorrect. Server controls are those non-html controls that are compiled from a
programming language and then processed on the server.Answer D is incorrect. Validation controls are those controls that are used for validating user input.
Answer B is incorrect. User controls are those controls that work as a container into which a user
can put markup and Web server controls. A user control can be treated as a unit and define
properties and methods for it. A user can create a user control in the same way he creates an
ASP.NET page and then add the markup and child controls that he needs. A user control may include
code to manipulate its contents like a page can, including performing tasks such as data binding.