Wrox Programmer Forums
|
Classic ASP Databases Discuss 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
 
Old August 31st, 2004, 04:52 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default html image

  How can i code for "tick mark" when the answer is right
 and "cross mark" when the answer is wrong.
I am trying this

 "< img src =""ASPtick.gif"">"
else
 "< img src =""ASPcross.gif"">" I will appreciate if you help

 
Old August 31st, 2004, 04:55 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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")

 
Old September 1st, 2004, 12:25 AM
Authorized User
 
Join Date: Aug 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sinapra Send a message via MSN to sinapra Send a message via Yahoo to sinapra
Default

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.

Regards

sinapra
 
Old September 1st, 2004, 01:02 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default

Dear simply do this

<img src="<% if condition true then %>true.jpg<% eles %> false.jpg<% end if%>">


(*_*)



Numan
--------------------------------------------------
Love is the most precious thing of this world. So find and grab it!
 
Old September 1st, 2004, 08:58 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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


 
Old September 2nd, 2004, 06:26 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
 
Old September 3rd, 2004, 12:07 AM
Authorized User
 
Join Date: Aug 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sinapra Send a message via MSN to sinapra Send a message via Yahoo to sinapra
Default

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.

Also send the exact code again.

Regards

sinapra
 
Old September 3rd, 2004, 12:32 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default

Yeah Sinapra is right that the path is using by him is incorrect so checks this other wise there is no error in the code to not display the image



(*_*)



Numan
--------------------------------------------------
Love is the most precious thing of this world. So find and grab it!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Email html format with image robprell Perl 3 May 9th, 2007 05:20 PM
Html to image Israr BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 December 4th, 2006 05:56 AM
embed image in php html email cullancrothers PHP How-To 12 September 16th, 2005 08:09 AM
Embed Image in HTML Email cullancrothers Pro PHP 4 June 22nd, 2005 01:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.