Image Address (URL) Not Available when Setting src to local file in windows server2008 R2 64
I am having a problem setting an image's source property to refer to a local file when running the application开发者_运维百科 under Windows 2008R2 64.
The application is running normally on 2008, XP and Win7, but when running the application under 2008R2 64 no image is displayed. Checking the source of the Page in IE and Chrome I can see the src
property points to the correct location, but if I right click the image and view its properties all properties are Not Available.
Select Tools - Internet options - Security Select Internet zone, if it's not already selected Click the Custom level... box In the Settings window, scroll down to Display mixed content and select Enable Click OK twice to close out the dropdowns
Hold shift and click refresh to see if it works?
First off, is the tag not <img src...>
? You said SCR so I just wanted to make sure you'd typed SCR on purpose or if that was a typo...
I've had the same problem debugging my websites in Visual Web Developer... The image tags all look right, I've even copied the source text (the address of the image) as reported by VWD without any improvement.
What I found was that the problem had to do with how I was specifying the path. I prefer to use absolute paths from the web root, but it seems like some software doesn't like that, try a relative path from the page you're working on:
So instead of:
<img src="~/Images/header.png">
Use
<img src="../Images/header.png">
HTH
精彩评论