Hi,
how can I pass a cell value from a datagrid to a button as asp-route-xx parameter?
to receive the value i use:
<script>
var id;
function RowSelected(args) {
id=this.getSelectedRecords()[0]['MarketId'];
}
</script>
but how do I pass the id here?
<button id="edit" class="btn btn-primary" asp-page="./NewMarket" asp-route-id=id>bearbeiten</button>
thanks in advance
Martin