Extending Built-In Web Controls - ASP.NET

{outline|||Step <1> - }


Although you can create a server control within its own project, sometimes you just want to extend a built-in ASP.NET web control for a single website. Here's how.


Create Extender Class

Configure Your Website

      <add tagPrefix="tag" namespace="namespace" />

Implement your Control

You can reference the new control in your ASPX code as follows.

<tag:className runat="server" ... />