I am looking for a way to search through every users profile using the standard ASP.Net Profile Provider. Is this possible, or should I create a new Profile Provider?
Here is the scenario:
- User registers
- User sets up their profile (favorite color, favorite book, country, etc)
- User is then able to browse other users who, for instance, have a favorite color of ‘Green’
I would like to use this all through the membership/profile providers without having to code against the database directly.
The functionality you want is included in the Profile API.
You can get an individual users profile using:
You can get all the profiles using: