So, I have an application in Blazor Server and I have two pages. On the first page the user introduces his Username and after he clicks the login button I want to show on the second page the Username he introduced. I tried with routing parameters, but I don't know if that's the right way because I'm new to Blazor.
@page "/firstPage"<EditForm Model="@user" OnValidSubmit="@Login"><label class="form-control-label text-muted">Username</label> <input type="text" id="username" name="username" @bind="user.Username"> <button class="btn-block btn-color">Login</button></EditForm>@page "/secondPage"//here I want to show the username from the first page