Forums

ASP

This topic is locked

Comparing Querystring Values

Posted 28 Apr 2003 07:46:00
1
has voted
28 Apr 2003 07:46:00 Ben de Groot posted:
When I Compare (rscontent.Fields.Item("ContentID".Value) to request.querystring("contentid" in an if ....then statement if does not work. What is the problem, and is there a workaround? Can anyone help????


If (request.querystring("contentid" <> "" Then
Selectcontentid = request.querystring("contentid"
end if
if (rscontent.Fields.Item("ContentID".Value) = Selectcontentid then response.write"selcont" else response.write "Mini" end if

Replies

Replied 28 Apr 2003 14:44:09
28 Apr 2003 14:44:09 Vince Baker replied:
It all looks fine, are you sure that the correct name is being selected in the querystring? No spelling mistakes?

And also, change response.write "something" to response.write("Something"


Regards
Vince

Visit my home: www.chez-vince.com

VBScript | ASP | HTML | SQL | Oracle | Hosting

Reply to this topic