小编Jes*_*per的帖子

从Blazor中生成的按钮调用功能

I'm currently trying to call a method from some autogenerated buttons, that are set up from some configuration. So the number of buttons is configurable. I have the blazor page as shown below. My problem is that if I have 3 buttons and I press one then ButtonClicked is called correctly, but the index is always 3 - the end value of int i for the for-statement. I of course want the index of the button to be passed …

c# asp.net-core blazor

2
推荐指数
1
解决办法
644
查看次数

标签 统计

asp.net-core ×1

blazor ×1

c# ×1