How to add dynamic block of textboxes.

  • Thread starter Thread starter Stan SR
  • Start date Start date
S

Stan SR

Hi,

I have a group of textboxes ("firstname" and "lastname") and a 2 buttons
("remove this block" and "add a new block").

And onto the main form, I have button called "submit the form" and an
initial block without the "remove this block" button

My question is to know how can I add and remove dynamically this block ?
And of course, how to "catch" all the values of the different dynamic blocks

The best way for me would be to use the Ajax update panel.

Any idea ?

Stan
 
I have a group of textboxes ("firstname" and "lastname") and a 2 buttons
("remove this block" and "add a new block").

And onto the main form, I have button called "submit the form" and an
initial block without the "remove this block" button

If the "content of the block" remains same, create a custom WebControl and
then use Repeater Control!


--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini-labs.com
-----------------------------------------
 
"MasterGaurav
If the "content of the block" remains same, create a custom WebControl and
then use Repeater Control!

Yes it has the same content.
But I don't know how to add and remove dynamically blocks.
Do you have any examples ?
Stan
 
Back
Top