How can i create a submitable form that contains dynamically added and removed controls

Posted by bill on Stack Overflow See other posts from Stack Overflow or by bill
Published on 2010-05-20T17:05:14Z Indexed on 2010/05/20 17:10 UTC
Read the original article Hit count: 269

Filed under:
|
|
|

Hi All,

I am trying to create a form that is made up of controls with values that represent an entity with multiple child entities.

The form will represent a product with multiple properties where the user will then be able to create options with multiple properties which in turn be able to create multiple option-items with multiple properties.

My question is what is the best approach? Can i use ajax to avoid postbacks and having to rewrite the controls to the page? If i dynamically add the controls in the form of table rows or grid rows will the data/control values be available in the code-behind when i submit?

This is an age old question.. the last time i had to do this was .Net 2.0, pre-ajax (for me) and i was forced to recreate all the controls on each post back. thanks!

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about AJAX