title: Setting value in html control in code behind without making server control
body: <p>Setting value in html control in code behind without making server control</p>
  
  <pre><code> &lt;input type="text" name="txt" /&gt;
      &lt;!--Please note I don't want put 'runat="server"' here to get the control in code behind--&gt;
      &lt;asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" /&gt;
  </code></pre>
  
  <p>Code behind:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      if (!Page.IsPostBack)
      {
          //If I want to initlize some value in input, how can I set here
      }
  }
  protected void Button1_Click(object sender, EventArgs e)
  {
      Request["txt"] // Here I am getting the value of input
  }
  </code></pre>