title: name attribute of a control in asp.net takes id by default
body: <p>why doesthe "name" attribute of the control in asp.net take the "id" value by default in asp.net ?</p>
  
  <pre><code>&lt;%var ctrl =new  HtmlInputText();
  
  
  
   ctrl.ID = "ctrl_id";
   ctrl.Name="ctrl_name";
  
     StringBuilder sb = new StringBuilder();
    System.IO.StringWriter sw = new System.IO.StringWriter(sb);
    HtmlTextWriter writer = new HtmlTextWriter(sw);
  
    ctrl.RenderControl(writer);%&gt;
    &lt;%=sb.ToString()%&gt;
  </code></pre>
  
  <p>the above code renders a control , but the name attribute takes the value "ctrl_id" and not "ctrl_name"</p>