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 ...

Get Delphi for .NET Developer’s Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.