Asp.Net c# web application html inside for loop code example
Example: c# razor for loop javascript
<script>
@for(int i = 0; i < 5; i++)
{
<text>
// Use <text> node to call js inside razor
var that = @i
</text>
}
</script>
<script>
@for(int i = 0; i < 5; i++)
{
<text>
// Use <text> node to call js inside razor
var that = @i
</text>
}
</script>