Multiple choice

Which of the following is NOT a property of a user control?

  1. They have a .ascx extension.

  2. They are compiled into a dynamic link library (DLL).

  3. They are derived from the System.Web.UI.UserControl class.

  4. The user control cannot have html or body tags.

  5. They have a Control directive instead of a Page directive.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A user control is compiled at run time. When the compiler finds the register directive in a .aspx page that points to a user control, it compiles the control before it inserts its content into the .aspx page. The customer controls are compiled as DLL files.