How To Display Variable Value In View?
There are several ways. For example simply using @
like this:
<td> @y </td>
Or by using a <span>
tag like this:
<span>Your Text @(y) ...</span>
Or using Html.Label
helper:
@Html.Label("lblName", y)
There are several ways. For example simply using @
like this:
<td> @y </td>
Or by using a <span>
tag like this:
<span>Your Text @(y) ...</span>
Or using Html.Label
helper:
@Html.Label("lblName", y)
来源:https://www.cnblogs.com/chucklu/p/11416939.html