Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Controls from a class

Status
Not open for further replies.

NeilV

Programmer
Oct 14, 2002
117
GB
Hello,

I have created a class that creates controls at runtime by using

"this.Controls.Add(ctrlName);"

while this works fine in normal aspx page it doesn't create the control if the code is a class. The class compiles OK and methods that don't create any controls work fine. How can I add controls that are created by a class to the webpage?

help!

NEil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top