按配置文件属性排列的 asp.net 用户列表
我已经为新用户添加到我们的系统时创建了一些配置文件属性。
一个属性称为“客户端”,并将该用户链接到特定客户端并存储客户端 ID。
我正在尝试创建一个页面,显示系统上每个客户端的用户列表,例如:
Client 1
User 1
User 2
User 3
Client 2
User 4
User 5
User 6
Client 3
User 7
User 8
User 9
有没有办法获取与特定配置文件属性匹配的用户列表?
感谢您的任何帮助。 J。
I have created some profile properties for when a new user is added to our system.
One property is called 'Client' and links this user to a particular client and stores a client id.
I am trying to create a page that shows a list of users for each client on the system such as:
Client 1
User 1
User 2
User 3
Client 2
User 4
User 5
User 6
Client 3
User 7
User 8
User 9
Is there a way to get a list of users that match a particular profile property?
Thanks for any help. J.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
下面的代码是我编写的一个旧的 VB.Net 方法,用于根据配置文件值过滤用户。可以对其进行稍微修改以完成您的任务。
The code below is an old VB.Net method I wrote to filter users based on a profile value. It could be slightly modified to accomplish your task.
找到了我正在寻找的东西,最终使用了这个:
http://pretzelsteelersfan.blogspot.com/2007 /03/get-aspnet-profile-properties-from-sql.html
不过,感谢您的帮助。
Found what i was looking for, ended up using this:
http://pretzelsteelersfan.blogspot.com/2007/03/get-aspnet-profile-properties-from-sql.html
Thanks for any help though.