473,508 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Images not displaying

Hello

I have tried putting a simple jpg onto a page. I did this by selecting Image
from the tool box. Then in the properties I selected Image Url and typed in
"App_Data/image.jpg"

It shows when I am looking at it in design, but not when I publish it, just
shows the little box like it cannot find the image.

Can anyone help please?

Thanks
James
May 26 '06 #1
7 1450
View Source of the resultant HTML and look at the image location

"James" <Ja***@discussions.microsoft.com> wrote in message
news:FE**********************************@microsof t.com...
Hello

I have tried putting a simple jpg onto a page. I did this by selecting
Image
from the tool box. Then in the properties I selected Image Url and typed
in
"App_Data/image.jpg"

It shows when I am looking at it in design, but not when I publish it,
just
shows the little box like it cannot find the image.

Can anyone help please?

Thanks
James

May 26 '06 #2
HI

It is "App_Data/image.jpg" which is correct

"Jeff Dillon" wrote:
View Source of the resultant HTML and look at the image location

"James" <Ja***@discussions.microsoft.com> wrote in message
news:FE**********************************@microsof t.com...
Hello

I have tried putting a simple jpg onto a page. I did this by selecting
Image
from the tool box. Then in the properties I selected Image Url and typed
in
"App_Data/image.jpg"

It shows when I am looking at it in design, but not when I publish it,
just
shows the little box like it cannot find the image.

Can anyone help please?

Thanks
James


May 26 '06 #3
So if you create a hard-coded one-line HTML page with this reference, the
image displays?

And App_Data is a subdir under the location of the calling page?

c:\inetpub\wwwroot\vdir\somedir\mypage.htm

c:\inetpub\wwwroot\vdir\somedir\app_data\image.jpg

Jeff

"James" <Ja***@discussions.microsoft.com> wrote in message
news:97**********************************@microsof t.com...
HI

It is "App_Data/image.jpg" which is correct

"Jeff Dillon" wrote:
View Source of the resultant HTML and look at the image location

"James" <Ja***@discussions.microsoft.com> wrote in message
news:FE**********************************@microsof t.com...
> Hello
>
> I have tried putting a simple jpg onto a page. I did this by selecting
> Image
> from the tool box. Then in the properties I selected Image Url and
> typed
> in
> "App_Data/image.jpg"
>
> It shows when I am looking at it in design, but not when I publish it,
> just
> shows the little box like it cannot find the image.
>
> Can anyone help please?
>
> Thanks
> James


May 26 '06 #4
Hi

Not one for hard coding HTML I am new to this. The code in my form is :
<asp:Image ID="Image1" runat="server"
AlternateText="SquareandCompass" ImageAlign="Middle"
ImageUrl="App_Data/image.jpg" /><br />

This is in a page called Default.aspx on some webspace. Not too sure of the
exact dir but basicaly:

www.webspace.com/client/default.aspx
and the image is in
www.webspace.com/client/App_Data/image.jpg

"Jeff Dillon" wrote:
So if you create a hard-coded one-line HTML page with this reference, the
image displays?

And App_Data is a subdir under the location of the calling page?

c:\inetpub\wwwroot\vdir\somedir\mypage.htm

c:\inetpub\wwwroot\vdir\somedir\app_data\image.jpg

Jeff

"James" <Ja***@discussions.microsoft.com> wrote in message
news:97**********************************@microsof t.com...
HI

It is "App_Data/image.jpg" which is correct

"Jeff Dillon" wrote:
View Source of the resultant HTML and look at the image location

"James" <Ja***@discussions.microsoft.com> wrote in message
news:FE**********************************@microsof t.com...
> Hello
>
> I have tried putting a simple jpg onto a page. I did this by selecting
> Image
> from the tool box. Then in the properties I selected Image Url and
> typed
> in
> "App_Data/image.jpg"
>
> It shows when I am looking at it in design, but not when I publish it,
> just
> shows the little box like it cannot find the image.
>
> Can anyone help please?
>
> Thanks
> James


May 26 '06 #5
I meant view the resultant HTML in the browser. Right click on the page in
IE, and choose View Source

And you better be sure of the exact dir...because there inlies your problem!

Here is test code. Does this work in test.htm?

<html>
<body>
<IMG src="app_data\image.jpg">
</body>
</html>

or

<html>
<body>
<IMG src="\app_data\image.jpg">
</body>
</html>
"James" <Ja***@discussions.microsoft.com> wrote in message
news:4E**********************************@microsof t.com...
Hi

Not one for hard coding HTML I am new to this. The code in my form is :
<asp:Image ID="Image1" runat="server"
AlternateText="SquareandCompass" ImageAlign="Middle"
ImageUrl="App_Data/image.jpg" /><br />

This is in a page called Default.aspx on some webspace. Not too sure of
the
exact dir but basicaly:

www.webspace.com/client/default.aspx
and the image is in
www.webspace.com/client/App_Data/image.jpg

"Jeff Dillon" wrote:
So if you create a hard-coded one-line HTML page with this reference, the
image displays?

And App_Data is a subdir under the location of the calling page?

c:\inetpub\wwwroot\vdir\somedir\mypage.htm

c:\inetpub\wwwroot\vdir\somedir\app_data\image.jpg

Jeff

"James" <Ja***@discussions.microsoft.com> wrote in message
news:97**********************************@microsof t.com...
> HI
>
> It is "App_Data/image.jpg" which is correct
>
>
>
> "Jeff Dillon" wrote:
>
>> View Source of the resultant HTML and look at the image location
>>
>> "James" <Ja***@discussions.microsoft.com> wrote in message
>> news:FE**********************************@microsof t.com...
>> > Hello
>> >
>> > I have tried putting a simple jpg onto a page. I did this by
>> > selecting
>> > Image
>> > from the tool box. Then in the properties I selected Image Url and
>> > typed
>> > in
>> > "App_Data/image.jpg"
>> >
>> > It shows when I am looking at it in design, but not when I publish
>> > it,
>> > just
>> > shows the little box like it cannot find the image.
>> >
>> > Can anyone help please?
>> >
>> > Thanks
>> > James
>>
>>
>>


May 26 '06 #6
Hi

Yeah I did view the source and the source said "App_Data/image.jpg"

The first option worked, the second with the first \ does not work.


"Jeff Dillon" wrote:
I meant view the resultant HTML in the browser. Right click on the page in
IE, and choose View Source

And you better be sure of the exact dir...because there inlies your problem!

Here is test code. Does this work in test.htm?

<html>
<body>
<IMG src="app_data\image.jpg">
</body>
</html>

or

<html>
<body>
<IMG src="\app_data\image.jpg">
</body>
</html>
"James" <Ja***@discussions.microsoft.com> wrote in message
news:4E**********************************@microsof t.com...
Hi

Not one for hard coding HTML I am new to this. The code in my form is :
<asp:Image ID="Image1" runat="server"
AlternateText="SquareandCompass" ImageAlign="Middle"
ImageUrl="App_Data/image.jpg" /><br />

This is in a page called Default.aspx on some webspace. Not too sure of
the
exact dir but basicaly:

www.webspace.com/client/default.aspx
and the image is in
www.webspace.com/client/App_Data/image.jpg

"Jeff Dillon" wrote:
So if you create a hard-coded one-line HTML page with this reference, the
image displays?

And App_Data is a subdir under the location of the calling page?

c:\inetpub\wwwroot\vdir\somedir\mypage.htm

c:\inetpub\wwwroot\vdir\somedir\app_data\image.jpg

Jeff

"James" <Ja***@discussions.microsoft.com> wrote in message
news:97**********************************@microsof t.com...
> HI
>
> It is "App_Data/image.jpg" which is correct
>
>
>
> "Jeff Dillon" wrote:
>
>> View Source of the resultant HTML and look at the image location
>>
>> "James" <Ja***@discussions.microsoft.com> wrote in message
>> news:FE**********************************@microsof t.com...
>> > Hello
>> >
>> > I have tried putting a simple jpg onto a page. I did this by
>> > selecting
>> > Image
>> > from the tool box. Then in the properties I selected Image Url and
>> > typed
>> > in
>> > "App_Data/image.jpg"
>> >
>> > It shows when I am looking at it in design, but not when I publish
>> > it,
>> > just
>> > shows the little box like it cannot find the image.
>> >
>> > Can anyone help please?
>> >
>> > Thanks
>> > James
>>
>>
>>


May 26 '06 #7
Hi

Just noticed something odd, When I double click on the file in the FTP
folder it loads the htm file up and it displays the image fine. But, when I
type in the url to the test.htm in the address bar, it does not.

What does that mean? I have turned pretty much every security i can off.

"Jeff Dillon" wrote:
I meant view the resultant HTML in the browser. Right click on the page in
IE, and choose View Source

And you better be sure of the exact dir...because there inlies your problem!

Here is test code. Does this work in test.htm?

<html>
<body>
<IMG src="app_data\image.jpg">
</body>
</html>

or

<html>
<body>
<IMG src="\app_data\image.jpg">
</body>
</html>
"James" <Ja***@discussions.microsoft.com> wrote in message
news:4E**********************************@microsof t.com...
Hi

Not one for hard coding HTML I am new to this. The code in my form is :
<asp:Image ID="Image1" runat="server"
AlternateText="SquareandCompass" ImageAlign="Middle"
ImageUrl="App_Data/image.jpg" /><br />

This is in a page called Default.aspx on some webspace. Not too sure of
the
exact dir but basicaly:

www.webspace.com/client/default.aspx
and the image is in
www.webspace.com/client/App_Data/image.jpg

"Jeff Dillon" wrote:
So if you create a hard-coded one-line HTML page with this reference, the
image displays?

And App_Data is a subdir under the location of the calling page?

c:\inetpub\wwwroot\vdir\somedir\mypage.htm

c:\inetpub\wwwroot\vdir\somedir\app_data\image.jpg

Jeff

"James" <Ja***@discussions.microsoft.com> wrote in message
news:97**********************************@microsof t.com...
> HI
>
> It is "App_Data/image.jpg" which is correct
>
>
>
> "Jeff Dillon" wrote:
>
>> View Source of the resultant HTML and look at the image location
>>
>> "James" <Ja***@discussions.microsoft.com> wrote in message
>> news:FE**********************************@microsof t.com...
>> > Hello
>> >
>> > I have tried putting a simple jpg onto a page. I did this by
>> > selecting
>> > Image
>> > from the tool box. Then in the properties I selected Image Url and
>> > typed
>> > in
>> > "App_Data/image.jpg"
>> >
>> > It shows when I am looking at it in design, but not when I publish
>> > it,
>> > just
>> > shows the little box like it cannot find the image.
>> >
>> > Can anyone help please?
>> >
>> > Thanks
>> > James
>>
>>
>>


May 26 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
1963
by: Ian Davies | last post by:
Hello Im having problems displaying my images as thumbnails in a table. My code for producing the new width and height from the original image is as follows...
2
2203
by: Woodmon | last post by:
I'm observing issue with linked images not displaying in either Firefox 1.5b2 or IE6 when running on Win XP (they display fine in either browser on W2k). Example problem HTML is: <a...
3
3465
by: Dalan | last post by:
At first I was not certain what could cause Access 97 from displaying most jpeg images, but not all. After further testing, it seemed that all original images of less than 275 pixels per inch or...
5
2934
by: david | last post by:
Can I use WriteFile methods? It seems that it does not work. For example, the following code only dispay one figure. Response.WriteFile("images/image002.jpg") Response.Write("<br><p>")...
3
2288
by: ABCL | last post by:
Hi I have asp.net web site that is working well on my m/c if I access using http:// But I depyoed on production,It requiers to use https:// , If i browse tha page using https://...and on login...
10
5724
by: gnewsgroup | last post by:
I've googled and tried various approaches, but could not resolve this problem. The article at MSDN: Displaying Images in a GridView Column only presents a simple case where all data (including the...
2
4667
by: Aneesh Pulukkul[MCSD.Net] | last post by:
Hi, I have a HTML page and associated images. I need to send the HTML as email -the email should also display the images at respective places. So am sending the content of HTML file as...
5
1886
by: Tom | last post by:
VS 2003/C# Have a axWebBrowser control that will not render images. Originally our app was just launching IE7 to display an HTML page. The bitmap images were not displaying - path was correct...
7
1974
by: Sonasang | last post by:
Hi , I am creating a web page in ASP. I will place some images in the folder, The images placed in the folder should be disaplayed. I am having the two button in the web page if I click next...
3
3563
by: =?Utf-8?B?UiBSZXllcw==?= | last post by:
Hi! This discussion may help other programmers get a better idea of how to save uploaded images through a website. Why? Well currently, I save 3 versions of every uploaded image on my own...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7124
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7385
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5629
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.