Re: Image doesn't load and security on folder is the cause??

From: Ken Schaefer (kenREMOVE_at_THISadopenstatic.com)
Date: 01/28/05


Date: Fri, 28 Jan 2005 13:01:16 +1100

If you are using Internet Explorer, use View -> Source.

Notepad should open, and you should see the HTML source sent from the
webserver to the browser. Check the <img> tag to see what it looks like.
Post that here.

Cheers
Ken

"Filip De Backer" <filip_de_backer@hotmail.com.(donotspam)> wrote in message
news:BD91D804-021A-43AD-B59B-8FD2F05702C1@microsoft.com...
> I've checked the source in the webbrowser, so that's why I've posted that
> piece of code.... I relly don't know what the difference is between the
> two
> pethods of getting the picture.
>
>
> "Ken Schaefer" wrote:
>
>> There must be an <img> tag in your HTML source. Your web-browser only
>> understands HTML.
>>
>> Don't look in your code source. You need to look in your *HTML* source
>> (in
>> your web-browser).
>>
>> Cheers
>> Ken
>>
>> "Filip De Backer" <filip_de_backer@hotmail.com.(donotspam)> wrote in
>> message
>> news:7012D6A3-6C51-4B5B-9F17-0963D8F795B4@microsoft.com...
>> > if (File.Exists(strPicturePath))
>> > {
>> > strHtml = strHtml + "<img src='" + strPicturePath + "'>";
>> > }
>> >
>> > So there isn't any img tag in my html page, but when use the share on
>> > the
>> > directory it works
>> >
>> >
>> > "Ken Schaefer" wrote:
>> >
>> >> Please do a "view source" in your browser, and post the relevant HTML
>> >> that
>> >> isn't working. You are looking for an
>> >>
>> >> <img src="...." >
>> >>
>> >> tag. Does the src= attribute appear to contain a valid URL?
>> >>
>> >> Cheers
>> >> Ken
>> >>
>> >> "Filip De Backer" <filip_de_backer@hotmail.com.(donotspam)> wrote in
>> >> message
>> >> news:7AA256CC-0EF0-4D92-A457-342DEC38439C@microsoft.com...
>> >> > hi everyone,
>> >> >
>> >> > On the webserver, all the websites are in folders on the d-drive.
>> >> > eg: my test website is 'd:\dir1\dir2\websites\asptest'.
>> >> > The IIS is configurated that all th esite sare in the
>> >> > d:\...\websites\
>> >> > directory
>> >> >
>> >> > I want to show a picture in the Image control.
>> >> > The images are in 'd:\dir1\dir2\websites\asptest\pictures'.
>> >> >
>> >> > when I said ImageUrl= "/asptest/pictures/picture1.jpg, it doesn't
>> >> > work.
>> >> > All the domain users and the asp .net machine user have full control
>> >> > to
>> >> > this
>> >> > folder, and still it doesn't work.
>> >> >
>> >> > But when I've created a share for thedirectory, it works fine.
>> >> > so ImageUrl="\\servername\sharename$\pictures\picture1.jpg" works
>> >> > fine.
>> >> >
>> >> > How does this come?
>> >> >
>> >> > thanks for the answers,
>> >> >
>> >> > Filip
>> >> >
>> >>
>> >>
>> >>
>>
>>
>>



Relevant Pages

  • Re: How do I get HTML sent to server?
    ... to the HTML source used to render the current page. ... anyone can but browser cannot. ... DOM Tree resulted from the parsing algorithms and error correction ... result of parsing the original HTML source. ...
    (comp.lang.javascript)
  • Re: Images not showing in Windows XP
    ... take a look at the HTML source on the client ... browser, and see where the image srcs point to. ... Kevin Spencer ... > value from the session and gets the picture from the DB which is ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: GridView and PagerStyle problem
    ... After the page is rendered is the style applied in the HTML source, ... Should I take care of speciality settings of the browser? ... gridview using the pagerstyle, but the settings are not appleyd at run ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Syntax for Perl script
    ... My suggestion above adds line breaks in the Perl source code, ... Your suggestion adds line breaks in the Perl output which probably also ... happens to be the HTML source for some browser somewhere but will not ... browser, i.e. one more level of redirection. ...
    (comp.lang.perl.misc)
  • Re: Outputting newlines
    ... Yes, thats true, but you may want to make the HTML source easier to read, then ... Even if the newline isn't displayed when you look at the webpage, ... you look at the HTML source in the browser and it's easier to track down ...
    (alt.php)