Skip to content

Are these example codes missing "@rendermode InteractiveServer"? #34249

@geniuszxy

Description

@geniuszxy

Description

I'm new to blazor. Today I tried the examples on this page, but they didn't work. I searched on internet and found a solution by adding "@rendermode InteractiveServer". I'm not sure if this step is necessary or if these examples are outdated. The same issue also appears on this page: https://learn.microsoft.com/en-us/aspnet/core/blazor/javascript-interoperability/location-of-javascript Please take a look.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/blazor/javascript-interoperability/call-javascript-from-dotnet?view=aspnetcore-9.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/javascript-interoperability/call-javascript-from-dotnet.md

Document ID

9e197a8b-2616-8363-0a15-38cac802e82e

Article author

@guardrex

Related Issues

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions