HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The HasUserId property is a boolean value that indicates whether the current user has a user ID in the WebSecurity database."
The HasUserId property is a boolean value that indicates whether the current user has a user ID in the WebSecurity database.
The property value is a boolean true if the current user has a user ID. The default is false.
@{
bool value;
value=WebSecurity.HasUserId;
}
<p>It is @value
that the user has an ID</p>
@Code
Dim value as Boolean
value=WebSecurity.HasUserId
End Code
<p>It is @value that the user has an ID</p>
The HasUserID property is read only. It cannot be changed by code.
The HasUserId property only verifies that the user has an ID in the WebSecurity database. It does not verify that the user account is valid (confirmed), or that the user is logged in.
Use the IsConfirmed() method to verify that the user is confirmed.
Use IsAuthenticated property to verify that the user is logged in.
Any access to the WebSecurity object throws an InvalidOperationException if:
❮ WebSecurity