表单有个单选项,
此主题相关图片如下:微信截图_20201113113011.png
‘这样写报错,应该怎么写???
If e.PostValues.ContainsKey("selettype") Then
If e.PostValues("selettype") = "onlyme" Then
flt="姓名= '" & e.Cookies("uname") & "'"
wb.AppendCookie("selettype", e.PostValues("selettype"))
Else If e.PostValues("selettype") = "aboutme" Then
flt = "(主操 like '%" & e.Cookies("uname") & "%' or 副操 like '%" & e.Cookies("uname") & "%' or 主指挥 like '%" & e.Cookies("uname") & "%' or 副指挥 like '%" & e.Cookies("uname") & "%')" '与姓名相关的,可能是多值字段,故用%%
wb.AppendCookie("selettype", e.PostValues("selettype"))
Else
wb.DeleteCookie("selettype")
End If
End If
此主题相关图片如下:微信截图_20201113113259.png