Bind data using a static method

To bind data using a static method use the following syntax:

<asp:Label ID="Label1" runat="server" 
    Text='<%# Namespace.Class.Method(
                DataBinder.Eval(
                  Container.DataItem, "FieldName")) %>'>
</asp:Label>

Comments are closed.