Relative Content

Tag Archive for javascriptforeachsyntaxrazor-pages

@foreach Isn’t Doing Everything for each record

I have a razor page that is looking at a list of people and their votes. It is bringing up items like Municipality, Supervisor, Simple Majority, 2/3 Majority just fine, but when it comes to SelectedVote, it only put the value in the first record, not the rest. SelectedVote is based on the DDL of VoteType. It also will not be present when the page loads – even though it is my understanding that “onchange” will also do “onload”. Am I incorrect? Could someone please point me to what I am missing? Please be gentle. I am trying my best and I have spent hours reading and trying things before I posted this.