I am iterating through a LARGE list of objects all of which will open the same modal window that will be loaded with dynamic information. To make this work, I create a counter called MenuCounter that I know increments just fine.
That said, I am attempting to wrap a hyperlink around the icons I need to use and the injection of the method keeps pointing to the last value of the MenuCounter.
I first tried this:
<a href="#" onclick="@(() => SetupChangeName(MenuCounter))" class="menuButton">...</a>
When I ran into the issue, I tried reducing the code to the following but then the page somehow activates the hyperlink and the modal window appears and will not go away.
<a href="#" onclick="SetupChangeName(MenuCounter)" class="menuButton">...</a>
Can somebody please help me out?
Thank you!