Re: ASP V2, Membership Beginner Question



Thanks for your help.
Roger Stenson
"Stan" <google@xxxxxxxxxxxxxxx> wrote in message news:3986b438-a9e5-46d3-a013-f322eaf3618a@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 20 Apr, 12:41, "Roger Stenson" <ro...@xxxxxxxxxxxxxxx> wrote:
Hi all
I have set off using the Create User and Login Control.
When I look at the Membership Table the UserID has a default format of
Unique
Identifier and the data value looks nothing like the values I keyed in.
How does the Login control in which the User Name as been entered relate tot
the Stored User ID. There does not seem to be a User Name field in my
Membership Table.
Roger Stenson

Hi Roger

I am assuming here that you are using the default membership provider
for ASP.NET

The column named User ID in the database is not the 'User ID' that is
typed in at the login control. In fact there are two tables in the
database that contain data for each user. One named "aspnet_Members"
and the other "aspnet_Users". The aspnet_Users table has a column
"Username". Look at that one and you will see the names that are typed
in at the login control. The User ID field is in GUID format (Globally
Unique Identifier) which is generated by an algorithm such that
duplicates are very unlikely. They are used as the part of the primary
key for two the tables (in conjunction with application ID which is in
a similar format).

HTH

.



Relevant Pages

  • ASP V2, Membership Beginner Question
    ... When I look at the Membership Table the UserID has a default format of Unique ... Identifier and the data value looks nothing like the values I keyed in. ... How does the Login control in which the User Name as been entered relate tot the Stored User ID. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: When does the Roles/Username get set in HTTPContext?
    ... Dominick Baier ... I have just made an app that uses the 2.0 membership and roles system, ... roles or other context for that user gets saved for later use. ... Is there some special code I have to put in the login control events ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: When does the Roles/Username get set in HTTPContext?
    ... I have just made an app that uses the 2.0 membership and roles system, ... roles or other context for that user gets saved for later use. ... Is there some special code I have to put in the login control events ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ASP V2, Membership Beginner Question
    ... I have set off using the Create User and Login Control. ... Identifier and the data value looks nothing like the values I keyed in. ... Membership Table. ... The User ID field is in GUID format (Globally ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Lock a User/MembershipProvider/Login control
    ... so there is no direct support of this feature in the Login control. ... to the provider internally to determine when this is happening and to ... thus they intended for each specific membership provider to ... how do I lock a user? ...
    (microsoft.public.dotnet.framework.aspnet.security)

Quantcast