niros Posted July 3, 2004 Posted July 3, 2004 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 Quote
niros Posted July 3, 2004 Author Posted July 3, 2004 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 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.