User Controls
This section discusses user controls and shows you how to build and add a user control to a Web page—both via the IDE and in code.
A user control is server-side control that you design in the page designer and save as a text file with the extension *.ascx. In Delphi for .NET, a user control will consist of the *.ascx file and an associated *.pas file that will be compiled into the resulting ASP.NET-based DLL. The *.ascx page is deployed and controlled along with the DLL on the server, so you as the developer can manage the control and make changes to it as needed and desired.
User controls are inserted into other pages either via the designer itself or manually by additions in code. The user control simply becomes part of the page ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access