06-19-06 06:22 PM
On 19 Jun 2006 08:01:54 -0700, thefunnel@aol.com wrote:
>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
Perhaps yu can write it as a Subroutine and call it when needed..
[ Post a follow-up to this message ]
|