When we remove the data from the data binding, the program generally converts them to String, so when writing a message book or chat room, you can do not perform data processing, but sometimes, or Transforming data, for example, I want Boolean, what should I do? There are two methods, one is a function provided by the system:
<% # String.format ("{0: C}", (Container.DataItem. ("Conversion Type")%> Can achieve the conversion
In addition, it also comes with a method <% # DataBinder.eval (Container.DataItem, "Conversion Type", "{0: C}")%>