title: how can i get value of all controls created in runtime in C# asp.net
body: <p>// this function create mutiple htmlcontrol with id fileid1,fileid2, fileid3 etc "content_data" is a html div id.</p>
  
  <p>protected void enter_rec_btn_Click(object sender, EventArgs e)
      {</p>
  
  <pre><code>    String control_data="";
      for (Int64 x = 1; x &lt;= 4; x++)
      {
          control_data = control_data + "&lt;input type='text' id='fileid" + x + "' runat='server' /&gt; ";
      }
  
      content_data.InnerHtml = control_data;
  }
  </code></pre>
  
  <p>//now in another btn click just access the controls</p>
  
  <pre><code>      for(Int64 i=1;i&lt;=4;i++)
         {
          HtmlInputText text1,
          text1 = (System.Web.UI.HtmlControls.HtmlInputText)Page.FindControl("fileid" + i);
          Response.write(text1.value); 
         }
  </code></pre>
  
  <p>but it can't find the control.i already include using System.Web.UI.HtmlControls.
  Help me..</p>
  
  <p>thanks in advance</p>