Figure 1 A Simple Control
/*=======================
Simple Control
========================*/
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MSDNSamples
{
public class SimpleCtl : Control
{
public SimpleCtl() {}
protected override void Render(HtmlTextWriter output)
{
string htmlText = "<head> What's up? </head>";
output.WriteLine(htmlText);
}
}
}
Figure 3 A Simple Control in Visual Basic FakePre-9c39ab4be02c46968245acc3e84ec2de-0523342bf0ba4df78cb7230289dfe742