title: Set HTML input textbox's display text using C#
body: <p>I have a HTML input box in my ASPX page like below</p>
  
  <pre><code>&lt;input id="txtID" runat="Server" type="text" /&gt;
  </code></pre>
  
  <p>Now I have some code written in C# codebehind which calculate a value and I want that value to be displayed in the above TextBox.</p>
  
  <p>I have already tried</p>
  
  <pre><code>txtID.Value = Number.ToString();
  </code></pre>
  
  <p>and</p>
  
  <pre><code>HtmlGenericControl ct = new HtmlGenericControl();
  ct.InnerHTML = Number.ToString();
  txtID.Controls.Add(ct);
  </code></pre>
  
  <p>but both of the above does not seems to set the display text of the textbox. </p>
  
  <p>Can anyone help me figure out as to how do I get it done.
  I cannot use </p>
  
  <pre><code>&lt;asp:TextBox /&gt;
  </code></pre>
  
  <p><strong>EDIT (WITH CORRECT ANSWER):</strong>
  The way I was originally trying to do was correct i.e.</p>
  
  <pre><code>txtID.Value = Number.ToString();
  </code></pre>
  
  <p>The culprit was Placeholder Plugin which was getting called and was erasing the values from the TextBox. Hope this will help a lot of people like me who get stuck at such silly places.</p>