The app requires user (mainUser) to login. Once logged in, the user can create users (subUser). I use the CreateUserWizard Control for this. I need to get the UserID of the subUser. HOw can I do this. I'm not sure of how to do it without confusing ASP of which userId I want. Is this a case for sessions? Or is there a more direct way?
How to get UserId registered user and log in UserId? My new table tbl_Employees, column:
UserId, UserIdNewRegister Eg.: 1. Log in UserId is: 76F31C27-9AA4-4968-AEAB-8B5DFEED16E7 2. Register a new user, UserId is: 20T31C27-9AA4-4968-83RR-8B5DFEED1632
How to get UserId: 76F31C27-9AA4-4968-AEAB-8B5DFEED16E7 and UserId new user: 20T31C27-9AA4-4968-83RR-8B5DFEED1632. I want to put the user is stored under UserId 76F31C27-9AA4-4968-AEAB-8B5DFEED16E7 and UserId: 20T31C27-9AA4-4968-83RR-8B5DFEED1632 new user.
LoginCreatedUser is "False" LoginCreatedUser = "False"
I have created my own form for creating a new user and collecting data, I just need to do one thing, find the UserID of the newly created user before they have logged in
Our application lets the administrator create new users. Since the administrator is logged in, I have set Logincreateduser = false so that the administrator is not logged out even after creating the new user.
The problem is :I need the userid of the newly created user to store additional details of the user in another database table. I see that i can get the username using Createuserwizard1.username; but how do I get the userID?
I'm using membership and roles in a Silverlight Business Application. There is a RegistrationOperation_Completed event in the RegistrationForm.xaml.cs code behind file with:
where I would like to obtain the UserId that was created for the newly registered user so that I can use it as the key to populate a userdetail table. How do I get it? All I have is the UserName that was used to register the new user.
WebContext.Current.User does not appear to return the UserId.
I have a gridview nested inside a Loggedin Template so when a user logins it will display their own details (name, address etc) When i attempt to run this i get this error message:
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
How do i set the default profile when a user logs in. I have an application where the users (once they are authenticated) are in either the logged in, premium, or promotion profile. right now it assigns none. How do i make every user automatically be part of the promotion profile.
I get an error only when Same User Name was created in Different Application ID.
Input string was not in a correct format. line- gluserID = Convert.ToString(command.ExecuteScalar())
Here is my code
If User.Identity.IsAuthenticated Then Dim UserIdentity As MembershipUser = Membership.Providers("CustMembershipProvider").GetUser(HttpContext.Current.User.Identity.Name, False) [code].....
I have used session to the creation of user and led them to the edit page ..But how do I retrieve my userID off from the session, or are there other ways to retrieve userID from?
After a user has finished registration, i want to show an info message and redirect the user to the site's main page after 5 seconds. I can do a delayed redirect easily:
[Code]....
How can i call this method only when the user was succesfully created?
When I create the user I am also pulling the UserID as I need it to enter this into a secondary table. However, the number that seems to come back is different then what ends up getting stored in the membership table ? can someone tell me why that is and what I might be doing wrong ? what i have noticed is that it truncates the first 3 characters when it is returned back?
I am setting up membership and rolls for a small forum site that im working on. All this info is stored in the standard aspnetdb database. When a user is logged in and saves a post to the forum, their UserId is saved to a database in unique identifier format such as: b40e346d-0399-4bbb-90ee-c7c440726cfd. I want to set up a web service so that the name of the author of each post can be clicked on to retieve details about him or her. Rather than passing along the UserId of the author to the web service, I want to pass along the UserName and use that to retrieve the user's Id, which will in turn be used to query the database. I cant seem to find info on how to do this. I can find how to retrieve this kind of info for the current logged in user, but not any or all users in general.
How can I get the exact ID of a user that is logged into a site?
I'm using the login and registration controls created by Visual Studio 2010, in the database the unique identifier is in this 28e8957e-00b8-4e75-bec9-2b90e640962d for example how can I return the exact one to be used in an SQL command for example?
I'm trying to get the current logged in UserId Value, using this code
[code]...
But, I getting an error (NullReferenceException), I did set a url authorization on the page that i try to get the logged in user information, witch is info.aspx, and I made the login.aspx control to be redirected to the info.aspx after the login process, But the info.aspx only shows me (access in denied), how can i make this page knows that i am already logged in?
We have a system where an administrator can login and create other users. If the administrator creates another user, then logs out and immediately logs back in with the new user information the UserID Guid is not available. If you log out and login again with the new username it works, or if you simply refresh the page it works.