I am working on MVC3, i have a situation where i want to do something like this:
<Div>
@Code
Dim i = 1
End Code
....
some where, i want to increment i's value, expect 'i' value should be incremented by 1 for subsequent use.
@i = @i + 1
..
</div>
but razor is throwing wrong syntax error message. Could someone help me how to do this properly in side razor code.
Thank you, Rey.