Results 1 to 3 of 3

Thread: Problem Adding Picture To Table Control *RESOLVED* - ISH

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2000
    Location
    Chesterfield, UK
    Posts
    298

    Problem Adding Picture To Table Control *RESOLVED* - ISH

    I have a table control.
    I have the following code :

    VB Code:
    1. Dim hPic As New HyperLink()
    2.             Dim strExt As String = Right(fiTemp.Extension, 3)
    3.  
    4.              hPic.ImageUrl = "../images/" & strExt & ".png"
    5.  
    6.             Cell3.Controls.Add(hPic)   ' Add to cell

    When the page loads, I get a dialog box asking for a username and password for the secure site.

    This is weird. I haven't changed the authentication to my web server, it is just set as anonymous access.

    I don't have ssl enabled or any form of certificate.

    If I set the to .ImageUrl = "" Then everything runs fine.

    How bizarre.

    Just wondered if you had any ideas?

    Cheers,


    Matt
    Last edited by MattJH; Apr 30th, 2004 at 04:00 AM.

  2. #2
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092
    bizarre indeed. Only idea i can think of are that there's secruity on the image directory which it doesn't sound like there is.

    Does it work if you use the full path rather than relative to the image folder?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2000
    Location
    Chesterfield, UK
    Posts
    298
    My god you will never believe, what the problem was.

    I change the images to .jpg instead of .png and it worked. I have no idea why that would be.

    Crazy


    Cheers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width