I am a bit stuck trying to figure out on how to show the value of a field model.SumValue
which I am calculating in the controller class in a input field or a label.
Controller class –
model.SumValue = Sum()
return View(model)
I am trying to set the field name this way into the <input/>
field.
<input type="text" asp-for="SumValue" />
Can anyone point out where I am going wrong here?