My above example was incorrect, and I appologize. Your class inherits from System.Web.UI.Page? How exactly are you planning to use this class? If you are developing a class to sit on top of the Page Class to extend functionality you merely have to access the
Controls collection of your class (it is inherited from Page). [C#]
rbuckton
Member
547 Points
124 Posts
Re: Add controls to current form from a class
Nov 04, 2002 12:10 PM|LINK
... protected override void OnLoad(EventArgs e) { this.Controls.Add(myControl); } ...[/C#] [VB][/VB]Senior Consultant
Microsoft