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.
当用户注册时,我将 IsApproved 值设置为 false 直到稍后。“批准”后,我将用户设置为 .IsApproved=true。但是,更改不会提交给 db。它确实显示了调试的变化。有任何想法吗?
尝试:
Membership.UpdateUser(user);
...这应该在您设置标志后强制更新用户。
MSDN 信息