Register is used to use user control - ASP.NET Security

Q.  If you are using user control in ASP.NET page which directory will be used?
- Published on 19 Oct 15

a. Register
b. Assembly
c. Implements
d. Aspx

ANSWER: Register
 
@register directive will be used, when you drag a user control onto your page. This directive registers your user control on the page so that the control can be accessed by the page. @Register directive informs the compiler that a user control added to the page. In ASP.NET the extension of user control is .ascx.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)