I'm generating HTML elements on the fly using javascript. These controls are located within an update panel on the browser.
For some reason, I'm unable to access those elements in the Page.Form[] array.
Is there a reason for this?
My current solution creates an array of strings, turns that into a JSON string, stores that in a hidden variable which gets posted back to the server as the hidden field was defined before in server side code.
Markup
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div id="dynamicInputsGoHere" class="hiddenContent" runat="server"></div>
</ContentTemplate>
Javascript to create inputs
for (i = currentSize; i < numberInputsToCreate; i++) {
html += "<input type='text' id='inputNum" + i.toString() + "' />";
}
$('#dynamicInputsGoHere').append(html);
I'm trying to access the dynamic inputs that were generated by javascript when the update panel posts back.