If e.GetValues.ContainsKey("unfilter") Then '如果有unfilter参数,则清除cookie
wb.DeleteCookie("danwenname")
MessageBox.Show(e.Cookies("danwenname"))
Else
MessageBox.Show("yyyy")
End If
With wb.AddButtonGroup("form1","btg1",False)
.Add("btn1", "确定", "submit")
.Add("btn2", "重置","", "lszaddnew3.htm?unfilter=true") '重置
End With
------------------------------------------
为什么当按“重置”按钮时,仍然显示cookie("danwenname")的值?再按一次“重置”按钮才显示空值?第一次的时候不是把cookie("danwenname")删除了吗?