Within a ListView, I have dynamically generated ImageButtons. If an image does not have a link, I want to make it disabled. In the ItemDataBound event, I attempted the following approach:
img.Enabled = False
img.DescriptionUrl = "javascript:void(0);"
img.PostBackUrl = "javascript:void(0);"
img.CssClass = "imageButtonClass"
img.Style.Add(HtmlTextWriterStyle.Cursor, "pointer")
CSS:
.imageButtonClass
{
cursor:pointer;
}
This successfully disabled the specified images in all browsers, however, the cursor only changed to a pointer in IE. It did not update in Firefox and Chrome. Any suggestions?