creating dynamic server controls

lounge56

Newcomer
Joined
Feb 5, 2004
Messages
14
Hello! I am working on a project where a user can create a dynamic submission form. This implies that the user can create different questions in different formats (i.e: questuion with drop down functionality, radio button functionality, checkbox functionality). Does the .NET Framework contain the functionality to create server controls from nothing in a web form by, say, calling certain functions and feeding themthe necessary parameters?

THank you!
 
Are you talking about adding buttons, textboxes and such onto a wep page (aspx) at runtime?
If so then the answer is yes. Each control has a Controls collection including the page itself.

so you can do this Panel1.Controls.Add(TexBox1)

or this Page.Controls.Add(Button1)
 
Back
Top