I want to use the button to run a c# method how to do that? Now if i make a button with

<button type="button" onclick="@class.method()" >execute method</button>

it just executes that method on page load but doesnt do that on button click.

Related posts

Recent Viewed