Best Practice: Get all Friends of a User

R

rudolf.ball

Hi NG,

I am writing an application in ASP.NET 2.0 where a user can login and
then receives a list of all his friends / cars / products whatever.

What is a best practice for getting an UserID, with which I can join
the FriendsTable? The LoginName - Control? Or is there any ID?

Thank you for your help,

Rudi
 
S

sloan

Im not sure what you're asking.

If you want the Identity of the logged in User....you can get it through
this (in asp.net that is)


Check this code:

if (Context.User.Identity.IsAuthenticated)
{
string id = Context.User.Identity.Name;

}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top