How to call isolated JavaScript code in .NET 5.0 Blazor projects with JSObjectReference

How to call isolated JavaScript code in .NET 5.0 Blazor projects with JSObjectReference

A dozen days ago the .NET 5.0 Release Candidate 1 (RC1) became available. And as you probably know, there are a lot of [“treats”](https://devblogs.microsoft.com/aspnet/asp-net-core-updates-in-net-5-release-candidate-1/) among the new features of...

A dozen days ago the .NET 5.0 Release Candidate 1 (RC1) became available. And as you probably know, there are a lot of “treats” among the new features of the ASP.NET Core updates. One of them is Blazor JavaScript isolation with aid of JSObjectReference.

Which benefits this feature give us?

First of all, you do not have to save your JavaScript object in the global Window namespace anymore. Just export your Javascript function or object.

And the second convenient thing is you do not have to import JavaScript files manually to your HTML markup. No more forgotten

posts .net 5.0 asp.net core blazor javascript jsobjectreference

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

jQuery Ajax CRUD in ASP.NET Core MVC with Modal Popup

In this article, we’ll discuss how to use jQuery Ajax for ASP.NET Core MVC CRUD Operations using Bootstrap Modal. With jQuery Ajax, we can make HTTP request to controller action methods without reloading the entire page, like a single page application.

MVC User Registration & Login with ASP.NET Core Identity

In this article, we will discuss the quickest way to use ASP.NET Core Identity for User Login and Registration in a new or existing MVC application.

Running WordPress on ASP.NET Core with Peachpie

In this article, you will learn how to use or integrate WordPress in ASP.NET and Running WordPress on ASP.NET Core, without PHP, or any source files on the server. The following demonstration will show you how to add WordPress as a frontend to an existing ASP.NET Core application step by step.

Extend IdentityUser in ASP NET Core

LIKE | COMMENT | SHARE | SUBSCRIBE In this tutorials, I will show you how to extend IdentityUser in asp.net core.. Subscribe & Stay Connected! Thank You! ♥ #...

Clear session in asp net core

LIKE | COMMENT | SHARE | SUBSCRIBE Today I will show you how to clear session data after logout from web application using asp.net core... Source code link :...