title: Asp.Net validators and read only textboxes
body: <p>I have a readonly textbox that has a required validator attached to it. This textbox can only be filled using other controls.</p>
  
  <p>The problem is that read only textboxes do not store their value and restore it on postback, so this is causing the validator to flare up each time there is a post back. I know there are ways to force it to store the value, but I actually don't want it to store it.</p>
  
  <p>Is there anyway past this?</p>
  
  <p>Edit: This is the control causing the problems:</p>
  
  <pre><code>            &lt;li class="fakeUploadLi"&gt;
                  &lt;asp:Label CssClass="lbl" ID="lb" runat="server" Text="Image:"&gt;&lt;/asp:Label&gt;
                  &lt;div class="fakeupload"&gt;
                      &lt;asp:TextBox runat="server" ID="tbFakeupload" Enabled="false" /&gt;
                  &lt;/div&gt;
                  &lt;asp:FileUpload ID="fuImage" runat="server" CssClass="fileUpload" onchange="this.form.ctl00$cphAdmin$tbFakeupload.value = this.value;" /&gt;
                  &lt;asp:RequiredFieldValidator ValidationGroup="newImage" runat="server" ControlToValidate="tbFakeupload"
                      ErrorMessage="Please select an image first."&gt;*&lt;/asp:RequiredFieldValidator&gt;
              &lt;/li&gt;
  </code></pre>
  
  <p>It is an overlay over the original FileUpload html control. Note that if I turn off readonly (or Enabled, tried both) the problem goes away.</p>