Print Page | Close Window

Syntax question?

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=12305
Printed Date: 30 March 2026 at 10:07pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Syntax question?
Posted By: rocketdawg
Subject: Syntax question?
Date Posted: 24 October 2004 at 5:04pm

<%
response.write "<img src=""imgs/Request.QueryString("intcatalogID").gif"">"
%

Does anybody have an idea why this doesn't show the gif?

I am trying to avoid multiple lines of this:

     if Request.QueryString("intCatalogID") = "CPQ" THEN response.write "<img src=""/imgs/compaq.gif"">"
     if Request.QueryString("intCatalogID") = "DIG" THEN response.write "<img src=""/imgs/digital.gif"">"
     if Request.QueryString("intCatalogID") = "EPS" THEN response.write "<img src=""/imgs/epson.gif"">"

Thanks for any help you may have on the syntax.




Replies:
Posted By: dpyers
Date Posted: 24 October 2004 at 8:56pm
response.write "<img src=""imgs/" & Request.QueryString("intcatalogID") & ".gif"">"

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: rocketdawg
Date Posted: 24 October 2004 at 11:22pm

And that's why you get the big bucks..

Thank you very much! I was going nutty with that.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net