Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
存储用户配置文件快速入门提供了一些有关管理 ASP.NET 用户配置文件的信息。在我的情况下,管理员必须能够使用配置文件更改/监控某些属性。是否可以使用默认的 SqlServerProfileProvider 访问和更改另一个用户配置文件中的用户配置文件的属性以及如何?谢谢。
如果“另一个用户配置文件”是指不是当前用户的用户的配置文件:
ProfileCommon userProfile = Profile.GetProfile(USERNAME); userProfile.Property = "blah";