开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜