Why StyleSheet.css is not displaying the picture depends on the situation. It displays “Taken!“ or “Available!” but no picture. I am using Ajax with asp.net
First thing to check is if the path to the images are correct. Images defined in a style sheet are relative to the style sheet not the page the style sheet is called from. Next since they are background images is there room for them to show being an empty div. Does adding the single word to the InnerText make enough space? What are the dimensions of the images?
Edit - I just tested it locally and it works so I’m going to go with my first instinct and say that the path is incorrect.
Yes, as I suspected the path is incorrect. You were looking for the images at TicketIssuerSystem\App_Themes\Green\Images which looks like it doesn’t exist.
As long as you aren’t running in a virtual directory this should work:
The preceding virgule tells the URL to look relative to the applications root.
I seem to remember that if you have the head set to runat=“server” then you can also do (~/Images/taken.gif) which may account for using a virtual directory. I’m not certain about that though.