Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Images Using ASP

Status
Not open for further replies.

Sunil606

Programmer
Dec 8, 2003
27
GB
I have some .jpeg images, which i want to display using ASP. What is the best way of doing this?

Thanks in advance.
 
Do you just want to write code that shows them? In that case, its

<%
Response.write(&quot;<img src='myPic.jpg'/>&quot;)
%>

If you want to show a dynamic image you need to call a recordset or use a case statement. Then you would do:

<%
'Some code that dynamically sets varPicName to your picture
Response.write(&quot;<img src='&quot; & varPicName & &quot;'/>&quot;)
%>
 
thanks for that, i will try it out, and let you know how it goes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top