Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

I've saved some images in a database.

when I want to write it out using the repeater I dont know how to write it in the page.

in old ASP we used to do response.binarywrite, how can I do it now?

I am using the following code:

    Private Sub Repeater1_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.RepeaterItemEventArgs) Handles Repeater1.ItemDataBound
       If e.Item.DataItem("contenttype") <> "" Then
           Dim span As System.Web.UI.HtmlControls.HtmlGenericControl

           span = e.Item.FindControl("spanAvatar")
           Response.ContentType = e.Item.DataItem("contenttype")
           span.InnerText = ????(e.Item.DataItem("fileddata"))

       End If
   End Sub

 

and I have a <span> inside the repeater where I want the image to be displayed.

 

some one know what should I do?

thanks

Posted

hmmm...

 

maybe this will help me:

some know how can I use response. from code behind, some one know how to redirect the response. out put to an object??

 

Thanks

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...