|
 |
asp_web_howto thread: Session Variable Help
Message #1 by Aaron.Mintz@d... on Mon, 23 Jul 2001 16:26:04 -0400
|
|
I am getting a type mismatch error when I try to populate a session
varaible
with a number and then evaluate the variable. Ex. If session("Test") >
1
then etc...
Has anyone ever encountered this problem. The application works on my
computer using PWS. I have moved it to production and the only
difference is
that the production server is running IIS.
thanks,
aaron
-----Original Message-----
From: joe_r_ellison@h... [mailto:joe_r_ellison@h...]
Sent: Tuesday, July 17, 2001 10:23 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Using Select Count(*) w/ SQL/Oracle &
printing the results
Hey folks!!
THANKS TO ALL who replied! It feels nice to be welcomed like this :)
The suggestions helped me find the errors of my ways and I know have a
successful counting utility!
I'll be sure to come back here with any questions I have about this in
the
future, and hopefully one day will know enough to become an answerer
too :)
Thanks!!!
Joe
Message #2 by "Ken Schaefer" <ken@a...> on Tue, 24 Jul 2001 12:19:42 +1000
|
|
Code please...
Cheers
Ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: <Aaron.Mintz@d...>
Subject: [asp_web_howto] Session Variable Help
I am getting a type mismatch error when I try to populate a session varaible
with a number and then evaluate the variable. Ex. If session("Test") > 1
then etc...
Has anyone ever encountered this problem. The application works on my
computer using PWS. I have moved it to production and the only difference is
that the production server is running IIS.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Message #3 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Tue, 24 Jul 2001 09:47:19 +0100
|
|
If you saved directly from the request, then the Session variable will
contain a string.
try
if CInt(session("Test")) > 1
or convert to integer before saving in the session variable
-----Original Message-----
From: Aaron.Mintz@d... [mailto:Aaron.Mintz@d...]
Sent: 23 July 2001 21:26
To: ASP Web HowTo
Subject: [asp_web_howto] Session Variable Help
I am getting a type mismatch error when I try to populate a session
varaible
with a number and then evaluate the variable. Ex. If session("Test") >
1
then etc...
Has anyone ever encountered this problem. The application works on my
computer using PWS. I have moved it to production and the only
difference is
that the production server is running IIS.
thanks,
aaron
-----Original Message-----
From: joe_r_ellison@h... [mailto:joe_r_ellison@h...]
Sent: Tuesday, July 17, 2001 10:23 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Using Select Count(*) w/ SQL/Oracle &
printing the results
Hey folks!!
THANKS TO ALL who replied! It feels nice to be welcomed like this :)
The suggestions helped me find the errors of my ways and I know have a
successful counting utility!
I'll be sure to come back here with any questions I have about this in
the
future, and hopefully one day will know enough to become an answerer
too :)
Thanks!!!
Joe
Message #4 by Aaron.Mintz@d... on Tue, 24 Jul 2001 08:40:26 -0400
|
|
Thanks,
that worked.
but i didn't save directly from a request. it was bombing out even if
I
assigned a number directly to the session
like
session("test") =3D 5
if session("test")>4 then
response.write "here"
end if
weird huh?
-----Original Message-----
From: Alex Shiell, ITS, EC, SE [mailto:alex.shiell@s...]
Sent: Tuesday, July 24, 2001 4:47 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Session Variable Help
If you saved directly from the request, then the Session variable will
contain a string.
try=3D20
if CInt(session("Test")) > 1
or convert to integer before saving in the session variable
Message #5 by Aaron.Mintz@d... on Tue, 24 Jul 2001 08:37:46 -0400
|
|
<%
Session("EID") =3D 5
if Session("EID") > 0 then
response.write "Works!!"
response.end
end if
%>
-----Original Message-----
From: Ken Schaefer [mailto:ken@a...]
Sent: Monday, July 23, 2001 10:20 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Session Variable Help
Code please...
Cheers
Ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: <Aaron.Mintz@d...>
Subject: [asp_web_howto] Session Variable Help
I am getting a type mismatch error when I try to populate a session
varaible
with a number and then evaluate the variable. Ex. If session("Test") >
1
then etc...
Has anyone ever encountered this problem. The application works on my
computer using PWS. I have moved it to production and the only
difference is
that the production server is running IIS.
|
|
 |