DMXzone Calendar 2 Support Product Page

Conditional Date Formatting not working with passed variables

Reported 30 Jan 2014 17:55:37
1
has this problem
30 Jan 2014 17:55:37 Andy Laverdiere, Jr. posted:
This is in regards to the ASP version.
I am trying to use 2 different classes for the Formatting based on a variable passed in the URL called CourseID but can not get it to work when entered as:
ClassA would be:
(rsTCSched.Fields.Item("cd_CourseID").Value)=(Request.QueryString("CourseID"))


ClassB would be:
(rsTCSched.Fields.Item("cd_CourseID").Value)<>(Request.QueryString("CourseID")) 

(same problem if I convert the QueryString variable to a Session variable)

But it works if I enter it with the actual variable being passed such as:
ClassA:
(rsTCSched.Fields.Item("cd_CourseID").Value)=64

ClassB:
(rsTCSched.Fields.Item("cd_CourseID").Value)<>64


Is that just the way it is or am I doing something wrong?

Thanks!

Andy

Reply to this topic