Hi,
User.Identity and User.Identity.Name is null for only one user while fetching the user id with domain in .cshtml page. But the same thing (User.Identity.Name) is working fine in one HTML page. In .cshtml page it was used under script section but in HTML page
it was used under body section. This is the only difference i have seen in these two pages.
Is there any alternative to fetch user id with domain? or Could you please help me to fix this issue for that user alone?
↧
User.identity and user.identity.name is null for only one user
↧