How to get object in C# when it is dynamically created by javascript
<p>I created several input text in Javascript in my .aspx</p>

<pre><code>      for (var i = 0; i &lt; listbox.options.length; i++) {
            var text = listbox.options[i].value;
            var element = document.createElement("input");


            //Assign different attributes to the element.
            element.setAttribute("type", "text");
            element.setAttribute("value", text);
            element.setAttribute("id", "TMruleItem");

            element.setAttribute("style", "width:480px; margin-top:10px");
            element.setAttribute("disabled", "disabled");
            element.setAttribute("runat","server");
            var foo = document.getElementById("Panel_TM");
            foo.appendChild(element);
      }       
</code></pre>

<p>However, when I try to get the text of this object in C#(code behind the .aspx), it seems impossible. Can anybody help with this? Thanks a lot!</p>
