在用户使用信息系统过程中
有时候 某些功能
上级用户可能希望
下级用户需要首先得到其授权后
方可使用
下面提供一种
生成随机但又有规律可循的一组问答数
以提供远程授权服务 的简单示例
示例页面如下:
操作流程如下:
下级用户进入需要上级授权才能保存的某个页面
页面会提供一组随机码
在保存等功能操作前
下级用户需要先将这组随机码告知上级用户
上级用户进入授权解码页面
利用这组随机码得到授权码
并告知下级用户
下级用户在保存等操作前
输入这组验证码
如果验证码正确
则下级用户的保存等操作可顺利进行
否则失败
相关代码如下:
RandomKey.aspx




































































RandomKey.aspx.cs




























































































App_Code下的
QuestionAnswerRandomKey.cs



























































