| | |
Type mismatch
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Feb 2007
Posts: 114
Reputation:
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
![]() |
Similar Threads
- Type Mismatch Error (MS SQL)
- Icons (Visual Basic 4 / 5 / 6)
- Type mismatch: cannot convert from int to ResultSet (JSP)
- Help with asp error (ASP)
- how to sort out type mismatch error while retreiving attribute from LDAP (Visual Basic 4 / 5 / 6)
- QBasic Nested for loop (Legacy and Other Languages)
- Create Windows Authentication (VB.NET)
Other Threads in the ASP Forum
- Previous Thread: How can i construct a database?
- Next Thread: Generating clientside javascript
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection calendar changeable connection current database databaseconnection diagnostics dreamweaver excel fso html iis microsoft msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption server single specfic sqlserver sqlserverconnection toolkit web webserver windows7





