How to add dynamic block of textboxes.

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
 
M

MasterGaurav \(www.edujini-labs.com\)

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
-----------------------------------------
 
S

Stan SR

"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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top