Classic ASP DatabasesDiscuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Response.Write("ASP Exam - Results")+"<br>" +""
Response.Write("<b>" +"1."+" " +"What does ASP Stand For ?" +"</b>")+"<br>"
if strQ1=10 then
Response.Write("Your Answer:ActiveServerPages")+"<br>"
Response.Write ("<img src=""ASPtick.gif"">"&strQ1& +" " + "Correct")
whats the actual problem, are you able to get the image?
What you can do is, place the image in the same folder. Then as the codition goes, if else, it will show the image. I hope that works.
If the answer is correct. I have to show tick mark. if
it is wrong I have to show cross mark. I am trying to use
this code "<img src = ""ASPtick.gif"">". It is gives
me two squares one outer and inner square. It doesnot give
me the image of "tick mark" Please help
Right click the X mark within the SQUARE and see its properties. Copy paste the URL that it shows in the properties window there. That would help better to know what the problem is.
Cheers!
_________________________
- Vijay G Strive for Perfection
AS i suggested you earlier, look where you have placed your images, i mean the folder and give the correct path suggested by Vijay. I am sure you will get the right images as you want, i.e.
if [condition] then
response.write ("<img src=path/tick.jpg>")
else
response.write ("<img src=path/cross.jpg>")
check the names of images and reflect the same in your code.