开发者

Retrieve Profile information for an asp.net membership user account

I want to pass an asp.net membership user name to a subroutine and retrieve t开发者_Python百科he profile property named FullName for that user, how can i achive this in vb.net?

Thanks in advance.


this is off the top of my head and my vb.net is rusty so treat it like psuedo code that may run as-is

Public Function GetProfileFullName(username as String) as String
   Dim profile as ProfileBase = ProfileBase.Create(username);
   Return profile.GetPropertyValue("FullName") as String;
End Function


you need to extend the ASP.NET Membership API for this.

follow this article to see how: http://www.code-magazine.com/article.aspx?quickid=0703071

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜