Using ASP.NET membership in web application

I am working on a website that will be using membership to secure a secured area of the site.  Website users will need to create an user account and provide some personal information about themselves.   When the site user creates an account the personal information that provide in stored in a table named tblUser_Info and a user is created using .net membership in the table aspnet_membership.

When the acct is created the users email address is used as the user name for when they login and is stored as a string the the tblUser_info table and as a uniqueidentifier (by default) in the aspnet_membership table.

I would like to be able to query both tables by the user name by an having issues because of the username being stored as a string in one table and as a uniqueidentifier in the other.  

I am wondering if their is a better approach to this or is their a way to covert, parse, cast, etc either value during the query so that the correct data from both tables is returned?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Randy DownsOWNERCommented:
maybe this will help. The unique identifier should be a number not a string. Perhaps the email is another field. Have you viewed the table with phpMyAdmin or SQL admin?

MembershipUser mu = Membership.GetUser("username");
string userId = mu.ProviderUserKey.ToString();

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.