Displaying an Image

Apollo0130

Newcomer
Joined
Mar 9, 2005
Messages
3
hi

how can i display an image in a Webform? i have used the Image-component from system.web.ui.webcontrols.image but the image i use in imageurl is not displayed! how can i display the image at runtime?
please help me...

greetz Apollo0130
 
ok, it works...here is the solution -> i used a dynamic image instead of a static image

Dim tRow As New TableRow
Dim tCell As New TableCell
Dim imgCell As New TableCell
Dim DynImg As New DynamicImage
tRow.Cells.Add(tCell)

tRow.Cells.Add(imgCell)
DynImg.ImageType = ImageType.Automatic
DynImg.ImageAlign = ImageAlign.NotSet
DynImg.ImageFile = "~/Data/_DEMO/" + Bild

tab_li.Rows.Add(tRow)
tab_li.Rows(1).Cells(1).Controls.Add(DynImg)

DynImg.Dispose()
 
Back
Top