We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How can I disable the double quotes in an ASP.net Image

Thread ID:




51574 Nov 8,2006 07:08 PM UTC ASP.NET Web Forms (Classic) 0
Tags: FAQ
Hany Sobhy
Asked On November 8, 2006 07:08 PM UTC

Dear All,
i'm creating a javascript functions which includes a an ASP Image using ASP:REPEATER. is there any chance to disable the double quotes of the asp:image translated tag to get the following output:

instead of

the ascx file contains the following:

the ascx.vb file contains the following:

Private Sub rpFeatured_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.RepeaterItemEventArgs) Handles rpFeatured.ItemDataBound
If e.Item.ItemType = ListItemType.AlternatingItem Or _
e.Item.ItemType = ListItemType.Item Then

Dim ID As TextBox = e.Item.FindControl("txtID")
Dim blnImage As TextBox = e.Item.FindControl("txtImage")

Dim Img As System.Web.UI.WebControls.Image = e.Item.FindControl("imgProduct")

If CBool(blnImage.Text) Then
Img.Visible = True
Img.ImageUrl = "/Images/Articles/Images/Small_" + ID.Text.ToString + ".jpg"
Img.Visible = False
End If

End If

End Sub

Thank you,
Hany Sobhy


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon