Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: = or <= doesn't always work


Message #1 by "Sanna Korpela" <sanna.m.korpela@l...> on Mon, 25 Jun 2001 11:06:28
Hello!

I have a weird problem with my ASP. I have two variables, both with same 

value, but ASP says the value isn't the same. 

With this line 	<%=rid%>=<%=seuraavarid%><%=rid=seuraavarid%> in ASP the 

browser returns this line 11=11False.

I tried to use theese variables in if-clause but if 11 is not 11 what can 

I do? Does anyone have any idea why this doesn't work?

Thanks,

Sanna 
Message #2 by workflow <workflow@s...> on Mon, 25 Jun 2001 16:07:42 +0530
Hi Sanna,

   Here is the sample code, it works for me and it works too...



            <% Dim x,y

       x =3D 11%>

      

       <% y =3D x%>

      

       <%=3D x%><Br>

       <%=3Dy%><Br>

      

        <% if x =3D y then

                Response.Write "Equal"

                else

                Response.Write "notequal"

                End if

       %>



   The result is 11 11 Equal

  Arun.



> -----Original Message-----

> From:	Sanna Korpela [SMTP:sanna.m.korpela@l...]

> Sent:	Monday, June 25, 2001 4:36 PM

> To:	ASP Databases

> Subject:	[asp_databases] =3D or <=3D doesn't always work

>

> Hello!

> I have a weird problem with my ASP. I have two variables, both with 

same

> value, but ASP says the value isn't the same.

> With this line 	

<%=3Drid%>=3D<%=3Dseuraavarid%><%=3Drid=3Dseuraavarid%> in ASP

> the

> browser returns this line 11=3D11False.

> I tried to use theese variables in if-clause but if 11 is not 11 what 

can

> I do? Does anyone have any idea why this doesn't work?

> Thanks,

> Sanna



Message #3 by "Sanna Korpela" <sanna.m.korpela@l...> on Mon, 25 Jun 2001 11:43:28
I allready wound the answer to my own question. Thanks anyway.



> Hello!

> I have a weird problem with my ASP. I have two variables, both with same 

> value, but ASP says the value isn't the same. 

> With this line 	<%=rid%>=<%=seuraavarid%><%=rid=seuraavarid%> in 

ASP the 

> browser returns this line 11=11False.

> I tried to use theese variables in if-clause but if 11 is not 11 what 

can 

> I do? Does anyone have any idea why this doesn't work?

> Thanks,

> Sanna 

  Return to Index