Answers for "blazor button onclick parameter"

C#
2

blazor button onclick parameter

@for (int i = 0; i < 10; i++)
{
    var buttonNumber = i;
    <button @onclick="@(e => test(buttonNumber, 5 * buttonNumber))">Check</button>
}
Posted by: Guest on September-15-2020

C# Answers by Framework

Browse Popular Code Answers by Language