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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Platform:

Replies:

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

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

End If

End Sub







Thank you,
Hany Sobhy

CONFIRMATION

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.

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.

;