title: Losing data changed by javascript during postback
body: <p>I have this asp.net control:</p>
  
  <pre><code>&lt;asp:TextBox ID="txtName" runat="server" EnableViewState="false" ReadOnly="true" /&gt; 
  </code></pre>
  
  <p>and I want to be it readonly, usually I do it with <code>ReadOnly="trye"</code> or with <code>Enable="false"</code></p>
  
  <p>if I change the value of this control through javascript in the client side, The changed value will not be propagated via postback in the serverside...whatever I do with javascript will not work, unless I remove the <code>readonly="true"</code> and <code>enable="false"</code>.</p>
  
  <p>How can I make it readonly so that when I change the value with javascript the value will be propogated via postback?</p>