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
>>
>>
>>