Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

How do I link a method instead of string to Path of RadzenLink

$
0
0

I have a RadzenLink and I want it to run a particular method when clicked. I'm doing it like this:

<RadzenLink Path=@OnReset Style="margin-bottom: 20px; margin-top: 20px;" Text="Reset" /> 

The OnReset is:

    protected void OnReset()    {        nameFirst = string.Empty;        nameLast = string.Empty;    }

I get an error on @OnReset at Path property that reads:

Cannot convert method group to string

So how do I provide a method to RadzenLink?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>