If you are in a .NET Core MVC view and need to know if a user is logged-in, use the “User.Identity.IsAuthenticated” property:
@if (User.Identity.IsAuthenticated) { <input type="button" id="submit" value="Submit" /> }
If you are in a .NET Core MVC view and need to know if a user is logged-in, use the “User.Identity.IsAuthenticated” property:
@if (User.Identity.IsAuthenticated) { <input type="button" id="submit" value="Submit" /> }
This entry was posted on May 6, 2020, 9:40 am and is filed under .NET Core, MVC. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
jgbenjam83dbd220a3 on Showing the MudDataGrid edit… | |
Shashank on Putting a line break in an res… | |
Ronaldo on jQuery autocomplete appears be… | |
isaks on Highlight row in a RadzenGrid… | |
Dan on Highlight row in a RadzenGrid… |