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. Image for the cookie policy date

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

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:

img src=/image_url/ ID=imgProduct class=ArtclThumb style=border-width:0px;

instead of

img src="/image_url/" ID="imgProduct" class="ArtclThumb" style="border-width:0px;"

the ascx file contains the following:
==============================================

asp:Image id=ImgProduct runat="server" BorderWidth="0" cssclass="ArtclThumb"



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"
Else
Img.Visible = False
End If

End If

End Sub



Thank you,
Hany Sobhy

Loader.
Live Chat Icon For mobile
Up arrow icon