Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm currently learning asp.net using web forms. Currently I am working on a basic profile system for a logged in user than can directly edit the information the user registered with.

Upon doing some research I decided to use the identity feature built right in to the standard web forms application. I spent a lot of time trying to figure out the best way to create a CRUD type of way to edit the identity information and finally decided on using the Scaffold function. (I'm still new to this - please let me know if there is a better way to do this)

Anyways, I've successfully created a CRUD for the identity. NOW I just would like to be able to ONLY show the data from the current logged in user.

I have tried playing with the httpcontext.current.user.identity or the getUserName() feature, I've played a bit to sql statements as well. I've tried looking on google and can't find exactly what I need.

Can anyone help with this please?

Note: I am using IDENTITY and not MEMBERSHIP. I am also using Web Forms and not MVC.

Here is the code on github.

https://github.com/madelinelise/Project
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900