473,666 Members | 2,565 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 1459
View Source of the resultant HTML and look at the image location

"James" <Ja***@discussi ons.microsoft.c om> wrote in message
news:FE******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> wrote in message
news:FE******** *************** ***********@mic rosoft.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\wwwr oot\vdir\somedi r\mypage.htm

c:\inetpub\wwwr oot\vdir\somedi r\app_data\imag e.jpg

Jeff

"James" <Ja***@discussi ons.microsoft.c om> wrote in message
news:97******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> wrote in message
news:FE******** *************** ***********@mic rosoft.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=" SquareandCompas s" ImageAlign="Mid dle"
ImageUrl="App_D ata/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\wwwr oot\vdir\somedi r\mypage.htm

c:\inetpub\wwwr oot\vdir\somedi r\app_data\imag e.jpg

Jeff

"James" <Ja***@discussi ons.microsoft.c om> wrote in message
news:97******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> wrote in message
news:FE******** *************** ***********@mic rosoft.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\i mage.jpg">
</body>
</html>

or

<html>
<body>
<IMG src="\app_data\ image.jpg">
</body>
</html>
"James" <Ja***@discussi ons.microsoft.c om> wrote in message
news:4E******** *************** ***********@mic rosoft.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=" SquareandCompas s" ImageAlign="Mid dle"
ImageUrl="App_D ata/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\wwwr oot\vdir\somedi r\mypage.htm

c:\inetpub\wwwr oot\vdir\somedi r\app_data\imag e.jpg

Jeff

"James" <Ja***@discussi ons.microsoft.c om> wrote in message
news:97******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> wrote in message
>> news:FE******** *************** ***********@mic rosoft.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\i mage.jpg">
</body>
</html>

or

<html>
<body>
<IMG src="\app_data\ image.jpg">
</body>
</html>
"James" <Ja***@discussi ons.microsoft.c om> wrote in message
news:4E******** *************** ***********@mic rosoft.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=" SquareandCompas s" ImageAlign="Mid dle"
ImageUrl="App_D ata/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\wwwr oot\vdir\somedi r\mypage.htm

c:\inetpub\wwwr oot\vdir\somedi r\app_data\imag e.jpg

Jeff

"James" <Ja***@discussi ons.microsoft.c om> wrote in message
news:97******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> wrote in message
>> news:FE******** *************** ***********@mic rosoft.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\i mage.jpg">
</body>
</html>

or

<html>
<body>
<IMG src="\app_data\ image.jpg">
</body>
</html>
"James" <Ja***@discussi ons.microsoft.c om> wrote in message
news:4E******** *************** ***********@mic rosoft.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=" SquareandCompas s" ImageAlign="Mid dle"
ImageUrl="App_D ata/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\wwwr oot\vdir\somedi r\mypage.htm

c:\inetpub\wwwr oot\vdir\somedi r\app_data\imag e.jpg

Jeff

"James" <Ja***@discussi ons.microsoft.c om> wrote in message
news:97******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> wrote in message
>> news:FE******** *************** ***********@mic rosoft.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
1974
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 ************************************************** if ($ImagePath) { //$Image = WEB_ROOT . 'images/PupilTester/' . $ImagePath; $Image = 'images/PupilTester/' . $ImagePath; } else { $Image ='images/PupilTester/nopicture.bmp'; }
2
2209
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 href="largepict.html" title="Blah" alt="Blah" target="_new"> <img src="images/smallpict.jpg" /></a> For the image to display in either browser on XP I have to use the
3
3477
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 less would display, but those close to 300 pixels/inch or greater would not (MS Access cannot recognize the file format xxx.jpg). The larger, original images were scanned and saved as .bmp (at 300 dpi producing a 15MB file). Then the images were...
5
2943
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>") Response.WriteFile("images/image003.jpg") Response.Write("<br><p>") Any help? Thanks
3
2291
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 page it doesn't link images, css and .js files on the login page. Once the user login successfully and try to browse login page agian, The images and .js files are working fine what can be problem? how to solve it?
10
5748
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 images) of the gridview come from a single table/datasource. Here is my situation. In my web application, I need to display customer bills info in a gridview. Customer names and contact info are from the Customer table.
2
4705
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 MailMessage.Body and adding all the referred images using MailMessage.Attachments.Add(). The images referred using <IMG SRC="Logo.png" /are displaying properly in the email, but the image referred by <TABLE...
5
1895
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 and HTML was correct. After converting images to JPG they started displaying OK in IE7. When we embedded the HTML in the axWebBrowser control it reverted back to the original behavior - no images. Images (even bitmaps) rendered OK in...
7
1977
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 button then the next image should be dispalyed, If i click prev button then the prev image in the folder shd be displayed.The images are not static... its if today i hav 10 images afetr some time i amy hav 15 images.... Pls help me... Thanks in...
3
3575
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 little website: 1. Small: DOWNsize of original image to be used as a thumbnail. 2. Medium: DOWNsize of original image to be used as user avatars/icons in forums or profiles.
0
8440
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8863
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8780
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8636
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7378
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6189
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5661
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4358
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1763
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.