The attached code is a segment from my online assessment web page. This code used to work, but as of today it has stopped. I do not know when it last worked. All the other assessment question work fine, but if the question is an image, the image does not show, I only get the image placeholder. I have tested this in Firefox and IE and the result is the same, the 'test' string variable is where I have tested to see if the path is correct, which it is and the image exists. I just cannot see why it has stopped working.
Can you think of anything else that could be stopping ut showing?
If row("questiontype") = 37 Then
Dim img As Image = New Image()
Dim test As String = Server.MapPath("~/secure/images/aqimages/" & row("questionImageFilename").ToString)
img.ImageUrl = Server.MapPath("~/secure/images/aqimages/" & row("questionImageFilename").ToString)
img.Width = 700
img.Height = 300
img.Visible = True