calling function from Eval method
In chapter 14 we have plenty examples how to use Eval with simple property name, for example: <asp:Label ID="DescriptionLabel" runat="server" Text='<%#Eval("Description") %>' />
I need to display Phone Number in my DataObject; as Phone Number can be null, I created function
Function FormatPhone(ByVal phone AsObject) AsString, which using phone as parameter. Is it possible to call this function with parameter from Eval method instead of property name to display Phone number as Label Text? How we can pass argument to the function from Eval?
|