-1

When user clicks 'add new' button I want to add more textbox into the page, so that he can add n number of values. I will do this with jQuery. But on submit click I want to get values from all the fields at server side. How can I accomplish this?

Subin Jacob
  • 4,366
  • 7
  • 34
  • 67

2 Answers2

0

Use jQuery.clone() to make a clone of the inputbox.

Remember this inputbox will be in array form as below

<input name="clonedbox[]"

and then just send it in submit function or ajax call.

Dipesh Parmar
  • 26,601
  • 7
  • 57
  • 86
0

You can store values in hidden field which has runat="server" using javascript and use that hidden field in server side code of asp.net

Adil
  • 143,427
  • 25
  • 201
  • 198