Home | Advertising Info119 USERS CURRENTLY ONLINE   
   Site Search Contact Us Wednesday, April 23, 2014  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 
Try a free httpZip trial now and compress for less!


We didn't realize
the site was so popular.

Other Stuff
 

 
 
vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
Subject: Comparing numbers....
From: Ben Thompson
Date: 10/12/2000 7:23:48 AM
IP: 212.250.119.70



 

Ok, a funny one here...

In a forum I wrote I wanted to display an edit link if the current user was viewing a message they wrote.

I have already setup a session variable for the user - session("userid") - and also had the authorid in each message.

all i thought i wanted to do was this....

<%
If session("userid") = rstemp("authorid") Then
<a href="edit.asp?msgid=22">edit message</a>
End If
%>

But I kept getting an error. Whe i displayed the values of each, both were correct, in this 19 & 19

So that meant that this comparison didnt work

If 19 = 19 Then etc......

????

Very strange. I got round it by adding a letter before each number, so it was

If "a" & session("userid") = "a" & rstemp("authorid") Then etc......

This worked fine. Does this mean you cant compare numbers like i tried too ??

Thanks,

Ben.

Follow Up - Re: Comparing numbers.... - Steve 10/16/2000 8:28:35 AM


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2014 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages asp source code database MS SQL MS Access .mdb adovbs.inc cookies calendar codes sql commands scripts asp programming tutorials iis web server components CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com