How to find the number of HTML elements with a name that starts with a certain string in c#?
<p>I'm not sure if the topic describes my problem very well but I am creating some HTML elements (textboxes) on the fly with jQuery and I never know how many I will create (it loops through a database). I then want to get all the elements in the code behind and perform some actions (insert them into another database).</p>

<p>I know I can use </p>

<pre><code>string n = String.Format("{0}", Request.Form["hiddenField0"]).ToString();
</code></pre>

<p>To get the first textbox but what if Idon't know how many textboxes I have created and want them all? Their name starts with hiddenField plus an incrementing number.</p>

<p>Is there a way to loop through all elements that has a name that starts with a certain string?</p>

<p>Thanks in advance</p>
