Dim e As RequestEventArgs = args(0)
Dim wb As New WeUI
Dim dr As DataRow=DataTables("报关员").sqlfind("手机号='" & e.Cookies("username") & "'")
If dr IsNot Nothing AndAlso dr("密码")=e.Cookies("password") Then '''如果有此用户,且密码正确.
With wb.AddGrid("","g1")
.Add("c1","Button", "./images/button.png").Attribute = ""
.Add("c2","Cell", "./images/cell.png", "http://www.foxtable.com")
.Add("c3","Toast", "./images/toast.png", "http://www.foxtable.com")
.Add("c4","Dialog", "./images/dialog.png", "http://www.foxtable.com")
.Add("c5","Progress", "./images/progress.png", "http://www.foxtable.com")
.Add("c6","Msg", "./images/msg.png", "http://www.foxtable.com")
.Add("c7","Article", "./images/article.png", "http://www.foxtable.com")
.Add("c8","ActionSheet", "./images/actionSheet.png", "http://www.foxtable.com")
.Add("c9","Icons", "./images/icons.png", "http://www.foxtable.com")
.Add("c10","Panel", "./images/panel.png", "http://www.foxtable.com")
.Add("c11","Tab", "./images/tab.png", "http://www.foxtable.com")
.Add("c12","SearchBar", "./images/search.png", "http://www.foxtable.com")
End With
e.WriteString(wb.Build)
Else
wb.AppendHTML("<meta http-equiv='Refresh' c>")
End If
Dim dr As DataRow=DataTables("报关员").sqlfind("手机号='" & e.Cookies("username") & "'")
If dr IsNot Nothing AndAlso dr("密码")=e.Cookies("password") Then '''如果有此用户,且密码正确.
这句代码是否正确?现在我无法提取到cookie值,直接就转到login页面了。