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.

You might also like...

Comments

About the author

Palo Mraz

Palo Mraz United States

I live in Slovakia with my wife, two sons (fulltime), one daughter (occasionally) and a dog. I've been doing Microsoft Windows development since 1988; primarily in VB. I'm a big fan of the MS .N...

Interested in writing for us? Find out more.

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There are only two kinds of languages: the ones people complain about and the ones nobody uses” - Bjarne Stroustrup