I Have images uploading to the server, but want them to be place in a temporary Gallery while there being uploaded, so I press upload the files copied to he new folder(working) and the image is displayed on screen(Half working)
Currently if I click upload it will copy the file, and print it on screen, then when I do it again it places the image underneath the first image when I want it to sit beside it im using a label and entering the <img> tag into that with each new upload.
[code=php]If Not (filUpload.PostedFile Is Nothing) Then
Dim strFileName As String
strFileName = filUpload.PostedFile.FileName
MsgBox(“Uploaded” + strFileName)
filUpload.PostedFile.SaveAs(Server.MapPath(strFileName))
lblImages.Text = lblImages.Text + “<div class=’PhotoBG’><img class=’PhotoItem’ src='” + strFileName + “‘ />Delete</div>”
End If
.PhotoBox
{
background-color: #FFF;
width: 117%;
min-height: 200px;
}
.PhotoBG
{
background-color:#E0E0E0;
text-align:center;
margin: 5px;
margin-top:10px;
height:120px;
width:100px;
border: 1px solid #006;
white-space:normal;
}
.PhotoItem
{
margin-top:5px;
min-width:95px;
max-height:110px;
max-width:95px;
}
The Div is the Culprete making it step to the new Line, if I cahnge it to a span it prints how I want except the text “Delete” which will be a link soon jumps to the side.
What should I be Doing to get this effect?