| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Am I missing something. If then with a session varible?
Just wondering if anyone knows why this will not work. I have tested the values, and they are equal
Thanks greg <% if session("ViewTeam") = session("confirm_team1") then response.Write("greg") else response.Redirect("sorry_no.asp") end if %> Last edited by gkiker : April 27th, 2004 at 12:05 AM. |
|
#2
|
||||
|
||||
|
Maybe one is a string and the other a number.
Try: Code:
if session("viewTeam") & "" = session("confirm_team1") & "" then
|
|
#3
|
||||
|
||||
|
try this
Code:
If (Trim(CStr(Session("ViewTeam"))) = Trim(CStr(Session("confirm_team1")))) Then
Response.write("greg")
Else
Response.Redirect("sorry_no.asp")
End If
|
|
#4
|
|||
|
|||
|
Thank you. that worked. :O) I was missing something...
|
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > Am I missing something. If then with a session varible? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|