Apollo0130 Posted March 9, 2005 Posted March 9, 2005 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 Quote
Apollo0130 Posted March 11, 2005 Author Posted March 11, 2005 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() Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.