V
VB Programmer
I have a cookie that is set by an ASP page. I can read it fine in my ASPX
page, but the update does not seem to work. Any ideas? Here's the code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
' Get the cookie value
Dim i As Short = Request.Cookies("NumVisits").Value()
' Write it to the screen
Response.Write(i)
' Increment the value by 1
Request.Cookies("NumVisits").Value = i + 1
End Sub
page, but the update does not seem to work. Any ideas? Here's the code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
' Get the cookie value
Dim i As Short = Request.Cookies("NumVisits").Value()
' Write it to the screen
Response.Write(i)
' Increment the value by 1
Request.Cookies("NumVisits").Value = i + 1
End Sub