各位老师好,我按照高级指南里面建的WEUI框架下设计首页和登录页面,现在我想在登录页面增加一个链接跳转到新用户注册页面,我添加后可还是跳转到登录页面,这个逻辑我没太明白,怎样写才能跳转到注册页面呢?
If UserName = "张三"
AndAlso Password =
"888"
Then
'实际使用的时候,请改为从数据库读取用户名和密码进行比较
Verified = True
ElseIf Username = "李四"
AndAlso Password="999"
Then
Verified = True
End
If
If Verified AndAlso
e.Path =
"logon.htm" Then
'如果用户访问的是登录页,且身份验证成功
wb.AppendCookie("username",UserName) '将用户名和密码写入cookie
wb.AppendCookie("password",Password)
wb.InsertHTML("<meta
http-equiv='Refresh' c>") '直接跳转到首页
e.WriteString(wb.Build)
'生成网页
Return
'必须的
ElseIf Verified = False
AndAlso e.Path <>
"logon.htm"
Then
'如果用户身份验证失败,且访问的不是登录页面
wb.InsertHTML("<meta
http-equiv='Refresh' c>") '那么直接跳转到登录页面
e.WriteString(wb.Build)
'生成网页
Return
'必须的
End
If