The Wayback Machine - https://web.archive.org/web/20220210064151/https://github.com/dotnet/aspnetcore/issues/40110
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not contain a public invokable method #40110

Open
1 task done
hintsofttech opened this issue Feb 10, 2022 · 0 comments
Open
1 task done

Does not contain a public invokable method #40110

hintsofttech opened this issue Feb 10, 2022 · 0 comments

Comments

@hintsofttech
Copy link

@hintsofttech hintsofttech commented Feb 10, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

dear sir/mam,
the following codes showing error i.e. Does not contain a public invokable method
we have tried by providing assemblyname of both calling as well as function contained in.

please help us the solution...

[JSInvokable]
public static void LogMessage(string msg)
{
Console.WriteLine(msg);
}

//script
$('tbody').on('focusin','td',function()
{
DotNet.invokeMethodAsync("Trading.Web","LogMessage","Hello");
});

Regards-
Sanjeeb

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant