I have an UserProfile object for the user john.
His LoginName is company\john.
i'm able to get it by objUserProfile["AccountName"].Value;
Now, i want to get details from the SPWeb object using this account name. but i'm unable to get it. Because in sharepoint the login name for that user is i#w:company\john. As i have enabled windows and farm-based authentication in my webapp, it is showing the loginname as i#w:company\john. But in userprofile object it is showing only company\john. What is the right way to access the details from sharepoint. Any suggestion please ..