ASP.NET成员资格是否提供了访问aspnet_Profile表的方法

时间:2016-06-23 19:20:22

标签: asp.net asp.net-mvc asp.net-membership membership-provider

我希望能够为登录用户检索其中一个连接字符串属性(PropertyNames列)的值。

我查看了会员类,但到目前为止找不到任何方法。

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

1 个答案:

答案 0 :(得分:3)

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

发现following link有助于提取个别属性。

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

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

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

following link指出了主要问题