ASP.NET .aspx page: how to send extra data back via Javascript?
<p>I have an old-fashioned ASP.NET plain .aspx page.
It has some server-side controls, some buttons to postback, etc.</p>

<p>I'm going to add some Javascript on the client side to create a list of extra data that the user builds.
I don't know beforehand how much of this extra data will be sent. So I can't, for example, just add 10 hidden input fields and check their values in the codebehind.</p>

<p>There might be 20 values sent back, there might be 100.</p>

<p>What's the best way to POST this extra data back to the server?</p>

<p>One way I can imagine it working is to add some dummy hidden list controls, to be filled in by JS on the client. It feels hacky, but I think I could make it work.</p>

<p><strong>Is there a better way?</strong></p>

<p>Some things to note:</p>

<ul>
<li>I'm not using MVC or AJAX</li>
<li>Not using JQuery (though I could, I suppose)</li>
</ul>

<p>I'm really just trying to get a handle on my options.</p>

<p>Thanks!</p>
