Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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!

  • Moderators
Posted

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)

Visit...Bassic Software

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...