This documentation is archived and is not being maintained.

Web User Controls and Web Custom Controls

Visual Studio .NET 2003

You can supplement the server controls that are provided with ASP.NET by defining your own controls, either as Web user controls or as Web custom controls. Each type of user-defined control has its advantages.

In This Section

Introduction to Web User Controls
Provides background information on Web user controls and how to work with them.
Creating Web User Controls
Outlines how to add a Web user control to a Web project.
Adding User Controls to a Web Forms Page
Provides details on the HTML tags needed to add Web user controls to Web Forms pages.
Introduction to Web Custom Controls
Provides background information on Web custom controls and when to use them.
Recommendations for Web User Controls vs. Web Custom Controls
Compares user controls to Web custom controls and presents guidelines for choosing between them.
Walkthrough: Creating a Web User Control
Presents step-by-step instructions on creating a user control for an ASP.NET Web application.
Walkthrough: Converting a Web Forms Page to a User Control
Presents step-by-step instructions for converting a regular Web Forms page into a Web user control.
Walkthrough: Creating a Web Custom Control
Presents step-by-step instructions for creating custom controls for use in an ASP.NET Web application.

Related Sections

Web Forms Pages
Presents a high-level overview of Web Forms features in Visual Studio and provides links for more information.
Developing ASP.NET Server Controls
Contains background information and examples to help you develop ASP.NET server controls.
Introduction to ASP.NET Web Applications in Visual Studio
Provides an overview of the components of an ASP.NET Web application, including Web Forms and XML Web services, and how Visual Studio helps you create a Web application.
Web Walkthroughs
Provides links to several walkthroughs that give step-by-step details of some common uses for Web Forms pages.