Introduction to custom server controls

Overview

This article will serve as an introduction to developing custom server controls, but it is by no means meant for people who do not have a decent understanding of C#.

In this article I'll guide you through the creation of a guestbook that you can use on your site or whatever. The guestbook will be organized like this:

  • GuestbookForm.cs - This will be the control that allows users to sign the guestbook
  • GuestbookRepeater.cs - This will be the control that displays all the entries in the guestbook
  • XmlEngine.cs - This class will control the retrieval and insertion of guestbook entries from the XML file
  • Guestbook.xml - This XML file will hold all the guestbook entries

Ok, we're just about ready to start developing this little application, but I just though I'd mention that the XmlEngine class will not be described in detail as I assume you understand what is going on there when you see it.
Well enough of this, let's start off by developing our XmlEngine class then...

You might also like...

Comments

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.

“An idiot with a computer is a faster, better idiot” - Rich Julius