I am having problems in an ASP page running VB.
I have several if/then statements such as...
if request.form("DateCompleted"<>null then
do somthing
end if
The "if" ALWAYS evaluates to false. In other words, the machine always thinks that the value is null. I tried writing the value to a variable and outputting the variable. The variable WILL display a value, so I know that it is not really null, but the machine STILL treats it as a null. I even tried doing the comparison on this variable, so that my code looked like this...
test1=request.form("DateCompleted"
response.write test1
if test1<>null then
do somthing
end if
The machine would display test1, but it STILL evaluated the "if" as false.
I have several if/then statements such as...
if request.form("DateCompleted"<>null then
do somthing
end if
The "if" ALWAYS evaluates to false. In other words, the machine always thinks that the value is null. I tried writing the value to a variable and outputting the variable. The variable WILL display a value, so I know that it is not really null, but the machine STILL treats it as a null. I even tried doing the comparison on this variable, so that my code looked like this...
test1=request.form("DateCompleted"
response.write test1
if test1<>null then
do somthing
end if
The machine would display test1, but it STILL evaluated the "if" as false.