开发者

how to edit user's profile variable (from web.config) while specifying user?

开发者 https://www.devze.com 2023-01-18 00:41 出处:网络
This is how I edit the profile variables for a currently logged in user: Profile.variablename = \"this\";

This is how I edit the profile variables for a currently logged in user:

Profile.variablename = "this";

How can I do the same thing, but specifying the username whose profile variable I want to change, as opposed to just the currently logged in开发者_如何学编程 user?

Something like Profile.variablename.("username", "this") is what I'm looking for.

I'm using C# asp.net, thanks for any help.


You can retrieve a specific profile with the Profile.GetProfile() method:

ProfileCommon profile = Profile.GetProfile(username);
profile.variablename = "this";
0

精彩评论

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