I have asp code with an object asp:Repeater.
I am familiar with using <%# Eval("field")dataitem.field to print HTML code. However, what should I do if I want to get the result Eval("field")stored in a string literal for further processing?
Update : I feel that I have to apologize for not being more specific. As the first responder suggests, I plan to use the result in ItemTemplate. However, what about the field of the current record, which is not a string? What if I have a complex type containing all kinds of weird ** and I want to refer to fields in my element template, and not as strings?
source
share