Jan 10, 2004 #1 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.
I have some .jpeg images, which i want to display using ASP. What is the best way of doing this? Thanks in advance.
Jan 10, 2004 #2 Guru7777 Programmer Dec 10, 2003 331 US Do you just want to write code that shows them? In that case, its <% Response.write("<img src='myPic.jpg'/>" %> 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("<img src='" & varPicName & "'/>" %> Upvote 0 Downvote
Do you just want to write code that shows them? In that case, its <% Response.write("<img src='myPic.jpg'/>" %> 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("<img src='" & varPicName & "'/>" %>
Jan 10, 2004 Thread starter #3 Sunil606 Programmer Dec 8, 2003 27 GB thanks for that, i will try it out, and let you know how it goes. Upvote 0 Downvote