Embeddable Web Forms
User controls represent another level of page reusability and turn out to be more employable because of their smaller granularity. With user controls, the reusability applies to input forms rather than to whole pages. User controls are also referred to as pagelets in some existing documentation. I’ll be using both terms interchangeably.
A user control can be seen as an embeddable Web form. You define a user control in much the same way you create a Web Forms page. When you’re finished with code and layout, you give the resulting file an ASCX extension. You can use the control with any ASP.NET page. Pages see the control as a programmable component and work with it in the same way they work with any other system Web control. ...
Get Building Web Solutions with ASP.NET and ADO.NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.