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 05:17:03 -0800

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: 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)
  • wierd behavior in program
    ... I am reading a file with html tags in ... I read each tag and push it on the stack and pop it when I ... int degree; ...
    (comp.lang.c)
  • Re: Please test my college project website
    ... at least get you started with the basic HTML and CSS. ... Validator message export for "http://www.groupmessage.co.uk": ... can add this from the Tags menu and/or from the Tag Inserter. ... browsers, ...
    (alt.html)