Two functions in blazor component should be called when I click on the button. Tried with comma, semicolon and parenthesis. Nothing works.
<div class="col-md-auto"><button type="button" class="btn btn-light btn-sm" @onclick="@SearchTable"@*call two methods SearchTable and SortTable*@>Search</button></div>
The two functions are given below
@functions{
public void SearchTable()
{
foreach (KeyValuePair<int, SearchCriteria> entry in SearchCritRefs)
{
entry.Value.setSearchCriteria(entry.Key);
}
}
public void SortTable()
{
foreach (KeyValuePair<int, SortCriteria> entry in SortCritRefs)
{
entry.Value.setSortCriteria(entry.Key);
}
}
}