Dynamically Create Controls in ASP.NET by Using Visual C# .NET

http://support.microsoft.com/kb/317794