【发布时间】:2011-10-14 12:33:53
【问题描述】:
我正在构建我自己的"user profile" 模块,其中一个选项,用户可以更改他的默认dnn 个人资料图像。我在“在后面的代码中”执行此操作时遇到问题。我正在使用c#。
这是我目前所拥有的:
UserInfo myDnnUser = this.UserInfo;
myDnnUser.Profile.InitialiseProfile(PortalId);
myDnnUser.Profile.SetProfileProperty("Photo", "new filename");
myDnnUser.Profile.SetProfileProperty("PhotoURL", "new url");
ProfileController.UpdateUserProfile(myDnnUser);
但它不起作用,当我查看 dnn 使用的“文件”表时,它仍然是相同的(旧)文件名。
有什么想法吗?
【问题讨论】:
标签: asp.net dotnetnuke dotnetnuke-module