skip to Main Content

I want to show multiple pages with routing when user is not Authorized in Blazor – Asp.net

I have App.razor file looking like this: @using MyFirstServerSideBlazor.Pages <CascadingAuthenticationState> <Router AppAssembly="@typeof(App).Assembly"> <Found Context="routeData"> <AuthorizeView> <Authorized> <RouteView DefaultLayout="@typeof(MainHeaderLayout)" RouteData="@routeData" /> </Authorized> <NotAuthorized> <RouteView DefaultLayout="@typeof(LoginBody)" RouteData="@routeData" /> </NotAuthorized> </AuthorizeView> </Found> <NotFound> <PageTitle>Not found</PageTitle> <p role="alert">Sorry, there's nothing at this address.</p> </NotFound>…

VIEW QUESTION
Back To Top
Search