Calling a custom html tag in codebehind
Posted on 2011-02-16
OK, here is my problem. I'm using a custom jquary app which works great, but it adds a custom html tage.
<img id="ImageZoomPort" src='<%# "/" + Application("SysUserDir") + Container.DataItem("PictureThumb") %>' longdesc='<%# "/" + Application("SysUserDir") + Container.DataItem("Picture") %>' onclick="enlarge(this);" class="Enlargeit_thumbnail" />
So I need to call that property in the codebehind, in the databound
CType(cell.FindControl("ImageZoomPort"), System.Web.UI.HtmlControls.HtmlImage).longdesc = "/Images/NoPhotoLarge.jpg"
but obviosly, that can't be done. because the tag is a custom tag.
Am hoping someone has a workaround for this problem
any help would be greatly appreciateed