Live Chat Icon For mobile
Live Chat Icon

The name ‘RegisteredFunction’ does not exist in the current context in Blazor.


‘RegisteredFunction’ does not exist anymore from Blazor v0.5.0.

JavaScript code

function JSMethod() {
   document.getElementById('demop').innerText = "JavaScript Method invoked";

Blazor code

@page "/jsinterop"
@inject IJSRuntime JsRuntime;

@code {
    protected void CallJSMethod()

Share with

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.