title: Post-back a value from text field that dynamically created [ASP.net]
body: <p>In my webpage i got a button, next to button there is a input type='text' text box that i create dynamically (<em>so i can't use the runat="server"</em>)</p>
  
  <p>I wan't to post back what the user has entered in the input box to the server.</p>
  
  <p>This is what i have done:</p>
  
  <pre><code>&lt;asp:LinkButton id="xx" OnClick="xx" runat="server"&gt;
  </code></pre>
  
  <p>And another button</p>
  
  <pre><code>&lt;button onclick="some_js_function()"&gt;
  </code></pre>
  
  <p>And the text box that dynamically generated</p>
  
  <p>And Another</p>
  
  <pre><code>&lt;aspx:HiddenField&gt;
  </code></pre>
  
  <p>This is what happens:
  The aspx button is hidden, when the user clicks the other button the js functions is called and copies the value from the javascript text box the hidden field box and then clicks (jQuery .click() ) the aspx hidden button.</p>
  
  <p>In the Google Chrome console i can see that the post-back is happening, and the value successfully copied but the server-side function that the onclick in the aspx button that is hidden is never called.</p>
  
  <p>This probably not the best way to do this..</p>
  
  <p>If someone got a better idea or a way to fix this i will be happy :) </p>