Please How do I fetch UserID on page after login, I have asked this alot of times yet no solution.
micah says: this.Page.User.Identity.Name
this.Page.User.Identity.Name
this
.Page.User.Identity.Name
Above returns string value and you are trying to store as int. So the error. So as per the return value change your code and if it always returns string then change your so as well.
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.