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

From: donotspam (filip_de_backer_at_hotmail.com.(donotspam))
Date: 01/27/05


Date: Thu, 27 Jan 2005 06:19:04 -0800

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: Loading html source to webbrowser from string
    ... What I need is to display area of tag in ... I don't use any other elements outside the <html> ... Do you know if there is any simpler way of making webbrowser to display ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Image doesnt load and security on folder is the cause??
    ... There must be an tag in your HTML source. ... Your web-browser only ... Don't look in your code source. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ruby html (or xhtml) forms class...
    ... xx is a library designed to extend ruby objects with html, xhtml, and xml ... xml or xhtml as clean looking and natural as ruby it self. ... attributes may be passed to any tag method as either symbol or string. ...
    (comp.lang.ruby)
  • Re: CSS Safari Problem (Mac)
    ... indirectly quoted, ... anything to say on my point: mixing HTML 4.01 and XHTML 1.0 is clueless. ... The closed meta tag was copied and pasted from Google's Webmaster ... But since this is Usenet, many likely are aware that the theme song ...
    (alt.html)
  • Re: Dynamically assigning functions with parameters to events
    ... which in turn does the work at mouseover-time: ... `onmouseover' is an attribute of the `body' element in Valid HTML ... its start tag. ... That it works in a handful of ...
    (comp.lang.javascript)