This code, in a Razor view:
if (true)
{
<table>
<tbody>
}
...
if (true)
{
</tbody>
</table>
}
does not run. It claims that there is no closing }
on the first if()
statement, and I'm guessing it's because of the <table>
tag.
Is there a way I can work around this to conditionally insert my <table>
tags?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…