Home | Advertising Info191 USERS CURRENTLY ONLINE   
   Site Search Contact Us Saturday, December 16, 2017  

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


We didn't realize
the site was so popular.

Other Stuff

Active Server Pages ASP control controls class classes module script Scripts applet CJWSoft ASPProtect ASPBanner ASPClassifieds

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


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


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 ??



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 - 2017 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 programs help tutorial tutorials routine routines jobs listserve mailinglist bulletin board bulletin boards programming snippet snippets 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