You can use the Web Control Library project template to author custom Web server controls. The template adds the necessary project items needed to start creating a control that can then be added to any Web project.
The template automatically adds the essential project references and files to use as a starting point for your application.
Concepts
Other Resources