C# 如何编辑用户';s配置文件变量(来自web.config),同时指定用户?
这是我为当前登录的用户编辑配置文件变量的方式:C# 如何编辑用户';s配置文件变量(来自web.config),同时指定用户?,c#,asp.net,visual-studio,C#,Asp.net,Visual Studio,这是我为当前登录的用户编辑配置文件变量的方式: Profile.variablename=“this” 我如何做同样的事情,但是指定我想要更改其配置文件变量的用户名,而不仅仅是当前登录的用户 类似于Profile.variablename.(“username”,“this”)的东西就是我要找的 我正在使用C#asp.net,感谢您的帮助。您可以使用profile.GetProfile()方法检索特定的配置文件: ProfileCommon profile = Profile.GetProfil
Profile.variablename=“this”代码>
我如何做同样的事情,但是指定我想要更改其配置文件变量的用户名,而不仅仅是当前登录的用户
类似于Profile.variablename.(“username”,“this”)
的东西就是我要找的
我正在使用C#asp.net,感谢您的帮助。您可以使用profile.GetProfile()
方法检索特定的配置文件:
ProfileCommon profile = Profile.GetProfile(username);
profile.variablename = "this";
您可以使用profile.GetProfile()
方法检索特定的概要文件:
ProfileCommon profile = Profile.GetProfile(username);
profile.variablename = "this";