Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor 8 InteractiveServer and Auth

$
0
0

I'm working on a Blazor project and when i try @rendermode InteractiveServer an exception is thrown on Authorized pages.I'm trying to get some components working, and they work if I test on the /Home @rendermode InteractiveServer it works fine. When the same code is on an Authorized page, it breaks.Here's a simple example of the code I'm trying to run:

<div>    Checked: @TheValue<InputCheckbox @bind-Value="@TheValue" /><label for="DemoCheckbox">Checkbox</label></div>@code{    public bool TheValue { get; set; } = true; }```So I'm trying to find how to get `@rendermode InteractiveServer` working on an Authorized page, or if there is some other way to get my components working there.Thanks,I was expecting the above checkbox to work without adding rendermode as  I have working components such as a file upload with a submit button that works fine. Setting rendermode breaks the page.

Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>