Best Practice: Get all Friends of a User

  • Thread starter Thread starter rudolf.ball
  • Start date Start date
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
 
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

Back
Top