Hello,
I have a Login page which checks if the user has entered the correct password by comparing it with values in the database.
I have done this with two classes: one that gets the passwords from the sql database and another that compares this data with the data entered by the user.
I have another page to which I redirect the users once they have successfully logged in (inside the Login button function). This new page is know as the User Profile page and I have to display a series of information regarding that particular user in this page.
I can't figure out how to do this. Since the UserProfile is a new page, how will I know which user info needs to be displayed?
Do I store the info and then display it in another page?
Or is there a way to know the id of the user who has just logged in?
I am new to ASP.NET and I'll be grateful if someone could help me with this.
I have a Login page which checks if the user has entered the correct password by comparing it with values in the database.
I have done this with two classes: one that gets the passwords from the sql database and another that compares this data with the data entered by the user.
I have another page to which I redirect the users once they have successfully logged in (inside the Login button function). This new page is know as the User Profile page and I have to display a series of information regarding that particular user in this page.
I can't figure out how to do this. Since the UserProfile is a new page, how will I know which user info needs to be displayed?
Do I store the info and then display it in another page?
Or is there a way to know the id of the user who has just logged in?
I am new to ASP.NET and I'll be grateful if someone could help me with this.
Comment