I am having a razor page as below. its inheriting the PaymentBase class that is having the code behind codes..
@page "/payment"
@inherits PaymentBase
<h1>Payments</h1>
<button class="btn btn-primary" onclick="@GetList()">List all payments</button>
The GetList function is fired automatically once the page is rendered and not on the click event..
any help please ??