With CSC / T: library /out:xx.dll xx.cs, you can generate a DLL next to you can add a reference to it in VS.NET. Source code from 9cbs: use system; using system.web.ui.webControls;
namespace CustomControls {public class FirstControl: Control {private String message = "Hello"; public virtual String Message {get {return message;} set {message = value;}} protected override void Render (HtmlTextWriter writer) {writer.Write ( " this.Message "
" "The time on the server is" system.datetime.now.tolongTimeString () " font>");}}}