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.
我正在为我的 Web 应用程序使用 asp.net 会员资格。我需要我的用户在成功登录后在单独的页面中选择他们自己的秘密问题和答案。
使用 asp.net 成员资格将秘密问题和答案插入数据库的方法是什么?
过程名称应为 [aspnet_Membership_ChangePasswordQuestionAndAnswer]
带参数
@ApplicationName nvarchar(256), @UserName nvarchar(256), @NewPasswordQuestion nvarchar(256), @NewPasswordAnswer nvarchar(128)
或者在代码中
http://msdn.microsoft.com/en-us/library/system.web.security.membershipuser.changepasswordquestionandanswer.aspx
但是你需要那个密码