COMO COLOCO UM IF DENTRO DE UM <TD> </TD
Olá pessoal,
Tenho a seguinte situação:
<tr ...>
...
<td scope="col">
@Html.Raw(Math.Round(listMedia.CalculaMedia(), 1, MidpointRounding.AwayFromZero))
</td>
</tr>
Como coloco um IF dentro do <tr> ou <td> ficando algo assim?
<tr ...>
...
<td scope="col">
[txt-color=#e80000] if (NroGraus >= 4)
{[/txt-color]
@Html.Raw(Math.Round(listMedia.CalculaMedia(), 1, MidpointRounding.AwayFromZero))
[txt-color=#e80000]}[/txt-color]
</td>
</tr>
ou Assim
<tr ...>
...
[txt-color=#e80000] if (NroGraus < 4)
{[/txt-color]
<td scope="col">
@Html.Raw(Math.Round(listMedia.CalculaMedia(), 1, MidpointRounding.AwayFromZero))
</td>
[txt-color=#e80000] }[/txt-color]
[txt-color=#e80000] else
{[/txt-color]
<td scope="col">
</td">
[txt-color=#e80000] }[/txt-color]
</tr>
Como faço a parte em vermelho?
se eu dou um pause em execução tem Valor um valor que eu pretendo no NroGraus
Grato
Tenho a seguinte situação:
<tr ...>
...
<td scope="col">
@Html.Raw(Math.Round(listMedia.CalculaMedia(), 1, MidpointRounding.AwayFromZero))
</td>
</tr>
Como coloco um IF dentro do <tr> ou <td> ficando algo assim?
<tr ...>
...
<td scope="col">
[txt-color=#e80000] if (NroGraus >= 4)
{[/txt-color]
@Html.Raw(Math.Round(listMedia.CalculaMedia(), 1, MidpointRounding.AwayFromZero))
[txt-color=#e80000]}[/txt-color]
</td>
</tr>
ou Assim
<tr ...>
...
[txt-color=#e80000] if (NroGraus < 4)
{[/txt-color]
<td scope="col">
@Html.Raw(Math.Round(listMedia.CalculaMedia(), 1, MidpointRounding.AwayFromZero))
</td>
[txt-color=#e80000] }[/txt-color]
[txt-color=#e80000] else
{[/txt-color]
<td scope="col">
</td">
[txt-color=#e80000] }[/txt-color]
</tr>
Como faço a parte em vermelho?
se eu dou um pause em execução tem Valor um valor que eu pretendo no NroGraus
Grato
@if(NroGraus < 4)
{
<td scope="col">
@Html.Raw(Math.Round(listMedia.CalculaMedia(), 1, MidpointRounding.AwayFromZero))
</td>
}
Seu certo, Valeu
Tópico encerrado , respostas não são mais permitidas