title: Many textboxes with the same ID
body: <p>I have the code below:</p>
  
  <pre><code>                &lt;%for (int index = 1; index &lt; 7; ++index) {%&gt;
                      &lt;tr&gt;
                          &lt;td&gt;
                              &lt;div class="indicacao_gdp"&gt;
                                  &lt;asp:TextBox ReadOnly="true" ID="inp_txt_indicacao_&lt;%= index %&gt;" CssClass="inp_txt_indicacao" runat="server" MaxLength="12"&gt;&lt;/asp:TextBox&gt;
                              &lt;/div&gt;
                          &lt;/td&gt;
                          &lt;td&gt;
                              &lt;div class="codigo_debito_credito_gdp"&gt;
                                  &lt;asp:TextBox ReadOnly="true" ID="inp_txt_codigo_debito_credito_&lt;%= index %&gt;" CssClass="inp_txt_codigo_debito_credito" runat="server" MaxLength="2"&gt;&lt;/asp:TextBox&gt;
                              &lt;/div&gt;
                          &lt;/td&gt;
                          &lt;td&gt;
                              &lt;div class="descricao_debito_credito_gdp"&gt;
                                  &lt;asp:TextBox ReadOnly="true" ID="inp_txt_descricao_debito_credito_&lt;%= index %&gt;" CssClass="inp_txt_descricao_debito_credito" runat="server" MaxLength="2"&gt;&lt;/asp:TextBox&gt;
                              &lt;/div&gt;
                          &lt;/td&gt;
                          &lt;td&gt;
                              &lt;div class="valor_debito_credito_gdp"&gt;
                                  &lt;asp:TextBox ReadOnly="true" ID="inp_txt_valor_debito_credito_inteiro_&lt;%= index %&gt;" CssClass="inp_txt_valor_inteiro" runat="server" MaxLength="8"&gt;&lt;/asp:TextBox&gt;
                                  ,
                                  &lt;asp:TextBox ReadOnly="true" ID="inp_txt_valor_debito_credito_decimal_&lt;%= index %&gt;" CssClass="inp_txt_valor_decimal" runat="server" MaxLength="2"&gt;&lt;/asp:TextBox&gt;
                              &lt;/div&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;%}%&gt;
  </code></pre>
  
  <p>But, the code not working...</p>
  
  <pre><code>Parser Error Message: 'inp_txt_indicacao_&lt;%= index %&gt;' is not a valid identifier.
  </code></pre>
  
  <p>How I solved?</p>