按钮事件里的COOKIES问题
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.ClickIf Me.CheckBox1.Checked = True Then
CreateCookies()
Else
If Request.Cookies("userName") IsNot Nothing Then
Dim cookie = Request.Cookies("userName")
cookie.Expires = DateTime.Now.AddDays(-1) '强制Cookie过期
Response.Cookies.Add(cookie)
End If
End If
End Sub
怎么老是说 未将对象引用设置到对象的实例。为什么,求高手解析 --------------------编程问答-------------------- 对象没有实例化 --------------------编程问答--------------------
补充:.NET技术 , VB.NET