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 : Nov 16th 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:




51576 Nov 8,2006 07:20 PM UTC ASP.NET Web Forms (Classic) 0
Tags: FAQ
Hany Sobhy
Asked On November 8, 2006 07:20 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:

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

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