Hi,
My LoginDetails.aspx.
vb file looks like:
----------------------------------------------------------
Partial Class LoginDetails
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
' make sure the page can't be accessed in real mode
If ConfigurationManager.AppSettings("mode") = "Real" Then
MessagePanel.Visible = True
UsersRolesPanel.Visible = False
End If
UserList.DataSource = Membership.GetAllUsers()
UserList.DataBind()
UserList.SelectedIndex = 0
RoleList.DataSource = Roles.GetAllRoles()
RoleList.DataBind()
RoleList.SelectedIndex = 0
End If
End Sub
Protected Sub UserList_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles UserList.SelectedIndexChanged
RolesForUser.DataSource = Roles.GetRolesForUser(UserList.SelectedValue)
RolesForUser.DataBind()
End Sub
Protected Sub RoleList_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RoleList.SelectedIndexChanged
UsersInRole.DataSource = Roles.GetUsersInRole(RoleList.SelectedValue)
UsersInRole.DataBind()
End Sub
------------------------------------------------------------------
Line 14 is; UserList.DataSource = Membership.GetAllUsers()
I have one member in my table called Membership, that member is in all roles, ie admin etc., I take it line 14 is getting all users from the membership table. Having looked at
http://msdn.microsoft.com/library/de...ovMod_Prt1.asp
I conclude that ValidateUser is saying that 'someuser' is not in the membership database ? If I am correct who is that user ? My SQLEXPRESS server is set to use 'Network Service' for logon control, so is that the user I am logged on to my Pc as ? If so, should I create that user as a member of the membership table ?
Did look at your answer but didnt truely understand it and wanted to understand the mechanism more anyway.
Thanks in advance.