What I want to do is create several rows with their respective element within an accordion, then I leave the code that I put in my event clicserver
public string RowsAdd = "";
RowsAdd += "<section class='col-lg-12 text-center top-buffer'><section class='col-lg-2'> <label>Titulo</label></section><section class='col-lg-2'><label>Descripcion</label></section><section class='col-lg-2'><label>Horas</label></section><section class='col-lg-2'><label>Seccion</label></section><section class='col-lg-1'><label>Hecho</label></section></section><section class='col-lg-12 text-center top-buffer'><section class='col-lg-2'><input type='text' class='form-control mandatory'/> </section><section class='col-lg-2'><textarea rows='5' class='form-control mandatory'></textarea></section> <section class='col-lg-2' > <input type='number' class='form-control mandatory'/> </section> <section class='col-lg-2' > <input type='text' class='form-control mandatory'/> </section> <section class='col-lg-1' > <input type='checkbox' class='form-control mandatory'/> </section> <section class='col-lg-2' > <button class='btn btn-primary' style='margin-top: 0px; ' runat='server' ID='addRow' OnServerClick='addRow_OnServerClick'> Agregar </button> </section> <section class='col-lg-1' > <button class='btn btn-primary' style='margin-top: 0px; '> Remover </button> </section> </section><span> </span>";
contantRows.InnerHtml = RowsAdd;
The problem is that if you do it but instead of putting the result of that query under my other row, it replaces it and every time I give it to add another new row it always stays in one because it does not put it under me it replaces the current one.
Html code:
<div style="height: auto;" runat="server" ID="contantRows">
<section class="col-lg-12 text-center top-buffer" id="seccionador">
<section class="col-lg-2">
<label> Titulo </label>
</section>
<section class="col-lg-2">
<label> Descripcion </label>
</section>
<section class="col-lg-2">
<label> Horas </label>
</section>
<section class="col-lg-2">
<label> Seccion </label>
</section>
<section class="col-lg-1">
<label> Hecho </label>
</section>
</section>
<section class="col-lg-12 text-center top-buffer">
<section class="col-lg-2">
<input type="text" class="form-control mandatory" />
</section>
<section class="col-lg-2">
<textarea rows="5" class="form-control mandatory"></textarea>
</section>
<section class="col-lg-2">
<input type="number" class="form-control mandatory" />
</section>
<section class="col-lg-2">
<input type="text" class="form-control mandatory" />
</section>
<section class="col-lg-1">
<input type="checkbox" class="form-control mandatory" />
</section>
<section class="col-lg-2">
<button class="btn btn-primary" style="margin-top: 0px;" runat="server" ID="addRow"
OnServerClick="addRow_OnServerClick"> Agregar </button>
</section>
<section class="col-lg-1">
<button class="btn btn-primary" style="margin-top: 0px;"> Remover </button>
</section>
</section>
<span> </span>
</div>