Re: Image doesn't load and security on folder is the cause??
From: Ken Schaefer (kenREMOVE_at_THISadopenstatic.com)
Date: 01/27/05
- Next message: donotspam: "Re: Image doesn't load and security on folder is the cause??"
- Previous message: donotspam: "Re: Image doesn't load and security on folder is the cause??"
- In reply to: donotspam: "Re: Image doesn't load and security on folder is the cause??"
- Next in thread: donotspam: "Re: Image doesn't load and security on folder is the cause??"
- Reply: donotspam: "Re: Image doesn't load and security on folder is the cause??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 28 Jan 2005 00:59:53 +1100
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
>> >
>>
>>
>>
- Next message: donotspam: "Re: Image doesn't load and security on folder is the cause??"
- Previous message: donotspam: "Re: Image doesn't load and security on folder is the cause??"
- In reply to: donotspam: "Re: Image doesn't load and security on folder is the cause??"
- Next in thread: donotspam: "Re: Image doesn't load and security on folder is the cause??"
- Reply: donotspam: "Re: Image doesn't load and security on folder is the cause??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|