Forum Discussion
Checho1965
Copper Contributor
This code does not work with .Net 8. Can you share the project?
GraemeWellington
Dec 20, 2023Copper Contributor
I have encountered this problem also when using '@onclick'.
in .Net 8 I think this to do with render modes.
I added the following to the top of my razor page in my Blazor Web app and the onclick worked:
@rendermode InteractiveServer
In the solution you get 2 projects: the Web and the Client - the above goes in the Web project.