Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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()

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...