|
-
Apr 29th, 2004, 06:13 AM
#1
Thread Starter
Hyperactive Member
Problem Adding Picture To Table Control *RESOLVED* - ISH
I have a table control.
I have the following code :
VB Code:
Dim hPic As New HyperLink()
Dim strExt As String = Right(fiTemp.Extension, 3)
hPic.ImageUrl = "../images/" & strExt & ".png"
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.
-
Apr 29th, 2004, 08:06 PM
#2
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?
-
Apr 30th, 2004, 03:58 AM
#3
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|