문제

Possible Duplicate:
how to use Profile.GetProfile() in a library class?

How to get profile in a cs class? It works fine in aspx.cs class.

 ProfileCommon profile= HttpContext.Current.Profile.GetProfile(username);

How to make GetProfile() available in cs class? please advice, Thank you

도움이 되었습니까?

해결책

Take a look at my answer about profiling users. There is all you need:

User profiles in asp.net

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top