ASP.NET 会员资格是否提供访问 aspnet_Profile Table 的方法

Does ASP.NET Membership Provide a Way to Access the aspnet_Profile Table

我希望能够检索已登录用户的串联字符串属性之一(PropertyNames 列)的值。

我查看了会员资格 class 但到目前为止找不到任何方法。

有什么想法吗?最好的方法是什么?

知道了!使用 System.Web.Profile.

发现 following link 对于提取单个属性很有帮助。

此外,应用程序抛出以下错误:

Could not load type 'System.Web.Security.SqlProfileProvider'

需要在 Web.Config 文件中进行更改

following link 指出了主要问题