Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 2277 | Replies: 2 | Solved
![]() |
•
•
Join Date: Feb 2007
Location: London
Posts: 114
Reputation:
Rep Power: 2
Solved Threads: 8
I'm not sure if you're saying the value you get from num = Request.Cookies("Result") is blank or just that it is a mismatch.
First of all do the following to your code
If you are saying you get no value back then check two things
1. You are definately setting Response("Result") to a value
2. Cookies are enabled on the client browser
You are going to need a lot more durable code to run this kind of thing so look in to how to preempt errors and handle issues. This isn't as easy in vbscript as it is in other languages, but there's always a way
First of all do the following to your code
num = Request.Cookies("Result")
If num <> "" Then
GOPercent = cInt(num)/25
End If
If you are saying you get no value back then check two things
1. You are definately setting Response("Result") to a value
2. Cookies are enabled on the client browser
You are going to need a lot more durable code to run this kind of thing so look in to how to preempt errors and handle issues. This isn't as easy in vbscript as it is in other languages, but there's always a way
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Linear Mode