I have a custom DataControlField class that works fine but when I try to use <%# Eval('???') %> with it I get an error.
"Databinding expressions are only supported on objects that have a DataBinding event. SharedGui.ImageLinkButtonField does not have a DataBinding event."
I can't get this to work, the DataControlField dosen't seem to have a DataBinding event to override or anything.
I could use a normal templatefield - itemtemplate etc. with eval but I don't want to rewrite this all the time.
Can this be solved in some way?
[AspNetHostingPermission(SecurityAction.Demand, Level = AspNetHostingPermissionLevel.Minimal)]
public class ImageLinkButtonField : DataControlField
/// The name of the DataField that will be bound
public virtual string DataField
object dataField = ViewState["DataField"];
View Complete Post