Relative Content

Tag Archive for blazor-server-side

Navigation Manager is null after adding Entra OpenId authentication

I am developing a Blazor server (.Net 8) application. In the OnAfterRenderAsync of the index page, if there is no Oath token, I’m sending the user to an external API to get it. Once that is done, the API redirects back to my app. That has worked fine for several weeks and it was one of the first methods I wrote. Wherever I call the Navigation Manager I’m injecting it as [Inject] public NavigationManager NavManager { get; set; }

Blazored.Toast does not work beginning from version 4.0.0

I have a Blazor server-side project (.Net 8), and I use Blazored.Toast to display messages. It used to work until I updated the package to the newest version. I noticed that the message boxes don’t look nice anymore, rather, they look like simple alert messages: