good evening. When making a request, an email is sent to said client who makes a request, and in the email I have several tables where I have data from the client who puts in the request but I want to separate them with a
if in said request I have 2 or more computers that the client reports in said request.
The 2 lines at the top of the table are the hr that I want to put between each team, serial number and then a line separating them
EquiposNombre += "<tr> <th colspan = '3' scope = 'col' > Información de HW/SW </th> </tr>";
if (solicitud.ActivosReportados.Count != 0)
{
foreach (var e in solicitud.ActivosReportados)
{
//EquiposNombre.Add(Utilidades.ActivoNombrePorActivoTipoIdActivoId(ar.ActivoId, ar.ActivoTipoId));
EquiposNombre += "<tr> <th scope='row'> Equipo: </th> <td>" + e.ActivoNombre + "</td> </tr>";
EquiposNombre += "<tr> <th scope='row'> Numero de Serie: </th> <td>" + Utilidades.ActivoNumSeriePorActivoTipoIdActivoId(e.ActivoId, e.ActivoTipoId) +"</td> </tr>";
if(solicitud.ActivosReportados.Count >= 2)
{
EquiposNombre += "<hr>";
}
}
}
In the if it is inside the foreach it is that if the assets reported in the request are 2 or more that a bottom line is put
Is that the lines within a table do not work. The tables are strict in their labels, and they don't allow what you do... although if you did it that way it should work fine for you. Change this:
For this:
Try and tell us.