Data binding

xiaoxiao2021-03-06  109

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}")%>

转载请注明原文地址:https://www.9cbs.com/read-104028.html

New Post(0)