How Do I?

[How Do I:] Extend and Customize an ASP.NET Server Control for a Specific Purpose

By Chris Pels|26 minutes|
In this video Chris Pels will show how to extend a standard ASP.NET server control and customize it for a specific purpose. Specialized controls provide an convenient way to implement standardized user interface elements for multiple web sites for individuals or teams of developers. In this example, see how to extend the DropDownList control to create a special purpose year selection control. Learn how to add properties for custom attributes that control the behavior of the range of years that can be displayed. Next, see how those custom attributes can be set in declarative syntax like standard attributes of a control. See how several additional properties can then be added to provide additional functionality for controlling the list behavior. Finally, see how an extended ASP.NET server control can be moved to a separate assembly so that it can be used across multiple web sites.

DOWNLOADS: Code (C#)|Code (VB)|MP3|MP4|WMV

This article was originally created on May 20, 2008

Author Information

Chris Pels

Chris Pels – Chris has been instrumental in the architecture, development, and implementation of a wide variety of business systems and databases as a technology consultant since 1986. He has extensive experience in business analysis, technical specifications, database design, several programming languages including C# and VB.NET, and statistical analysis. He holds a Ph.D. from The University of Michigan and has been a speaker at Microsoft TechEd, Microsoft DevDays, VSLive, numerous events in New England