-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,692
  • 10
  • 37
  • 69

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
  • 27,090
  • 8
  • 61
  • 90
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
  • 146,340
  • 25
  • 209
  • 204