T
thefunnel
Hi,
I have the following ASP to display a certain image depending on a case
statement...
<%
Select Case (recordset("type"))
Case "type1"
Response.Write ("<img src=""type1.gif"" border=""0"">")
Case "type2"
Response.Write ("<img src=""type2.gif"" border=""0"">")
Case "type"
Response.Write ("<img src=""type3.gif"" border=""0"">")
End Select
%>
As the case section will be the same through out the document, and will
appear up to 30 times... Can I create some kind of "variable" at the
top and simply call it when required?
Many thanks,
Paul
I have the following ASP to display a certain image depending on a case
statement...
<%
Select Case (recordset("type"))
Case "type1"
Response.Write ("<img src=""type1.gif"" border=""0"">")
Case "type2"
Response.Write ("<img src=""type2.gif"" border=""0"">")
Case "type"
Response.Write ("<img src=""type3.gif"" border=""0"">")
End Select
%>
As the case section will be the same through out the document, and will
appear up to 30 times... Can I create some kind of "variable" at the
top and simply call it when required?
Many thanks,
Paul