Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

ASP.NET image overlay

Posted on 2007-10-02
3
Medium Priority
?
962 Views
Last Modified: 2013-11-26
I have an aspx page that populates images from a datasource url.

The same datasource has a field that =1 if sold and =0 if avaiable.

Is it possible to place an "overlay" on the image if the item is sold?

The original's are all jpg's and the overlay is an image of the same sive but is a alpha transparency gif.
0
Comment
Question by:lrbrister
  • 2
3 Comments
 
LVL 29

Expert Comment

by:QPR
ID: 20002593
could you not use 2 separate images and choose which one to use on each row based on the value of the sold/available field?
Maybe a case statement in your sql select?

Or perhaps a div containing the transparent gif that is positioned over the original image with the div set to hidden or default based on the sold/availble field?
0
 
LVL 26

Expert Comment

by:Rejojohny
ID: 20003254
You can place the image within the cell of a table and then change the background of the cell to the iamge that you want to show .. add a image tag within the td and set the src to the gif file - sold or available ..
0
 
LVL 26

Accepted Solution

by:
Rejojohny earned 2000 total points
ID: 20003262
a better option would be to use the style property of the image tag .. like this
<img style="background:url(YourImage.jpg)" src="Sold.gif" alt="" />
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Screencast - Getting to Know the Pipeline
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question