Foxtable(狐表)用户栏目专家坐堂 → 为什么会编译错误呢?


  共有1837人关注过本帖树形打印复制链接

主题:为什么会编译错误呢?

帅哥哟,离线,有人找我吗?
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107718 积分:547917 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/7/28 22:25:00 [显示全部帖子]

Dim UserName As String = e.Cookies("username") '从cookie中获取用户名
Dim Password As String = e.Cookies("password") '从cookie中获取用户密码
If e.Path = "logon.htm" '如果是通过登录页面访问,从PostValues即可中提取用户名和密码
    If e.PostValues.ContainsKey("username") AndAlso e.PostValues.ContainsKey("password")  Then
        UserName = e.PostValues("username")
        Password = e.PostValues("password")
    End If
End If
dim dr as datarow = DataTables("用户表").find("username='" & e.PostValues("username") & "'")
if dr isnot nothing then
    Verified   = ( Password  = dr("password"))
ElseIf Username = "李四" AndAlso Password="999" Then
    Verified  = True
else
    Verified   = false
end if

 回到顶部
帅哥哟,离线,有人找我吗?
有点蓝
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107718 积分:547917 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/7/29 10:49:00 [显示全部帖子]

事件重复定义了dr这个相同名称的变量,请改名

 回到顶部