With a .NET repeater is there anyway to call methods in the #Eval(”) directive? For example, if I am binding to an object with a DateTime property, it would be really convenient to set #Eval(“ADateTimeProperty.ToString(‘hh:mm’)”) or something along those lines. Is the only option to create another property with that returns a formatted DateTime?
Share
Absolutely. For your datetime issue, however, you can just use:
If you wanted to call a method, you could do:
And on the code-behind: