Library tutorials & articles

Inheriting An ASP.NET Server Control

Introduction

After developing several ASP.NET WebForms applications, I have to say that ASP.NET is a great framework. Despite the fact that my knowledge about the ASP.NET architecture is near to nothing, I was still able to develop something useful (I hope!). For the most part, my ASP.NET applications are simple, ad-hoc front-ends to some back-end functionality (see http://www.nrsr.sk/bin/net/nrozprava/ as an example). I didn't need to use any sophisticated custom controls; just a UserControl here and there in order to encapsulate some repeating functionality within a single application.

Sometimes, however, I needed to extend a built-in WebControl by deriving from it. You also can use this approach when one of the ASP.NET-provided controls "almost" meets your needs, but lacks some required bit of functionality.

AddThis

Comments

  1. 23 Aug 2004 at 02:26

    It is a very good article. I understood the web custom contol by this sample code.
    Thanks

Leave a comment

Sign in or Join us (it's free).

Related discussion

Related jobs

Events coming up

  • Oct 14

    What’s New in Visual Studio 2008 Service Pack 1?

    Birmingham, United Kingdom

    “Service Pack? We’re calling it a Service Pack? Are you kidding??!?!” Visual Studio 2008 Service Pack 1 will release later in 2008 alongside .NET Framework V3.5 Service Pack 1 and, together, they represent a significant upgrade to Visual Studio 2008. There are enhancements across many areas of the .NET Framework such as data access, windows application development and web development and there are also corresponding changes in the development environment to support the new framework features.