Data binding in ASP.net eval and bind application examples _ Practical tips
Source: Internet
Author: User
Key words:
Data binding for Eval (single bound) items is typically used for data presentation. The reflection principle applied by the Eval data binding to return the data.
Bind (bidirectional binding) two-way data binding in addition to the presentation of data, but also to the interface data changes are automatically written back to the binding data source.
Eval
A one-way data binding that presents data from a data source to the interface. When we refer to data presentation, we must take into account the format of the data, such as date format. Of course, that's what eval is concerned about.
General Data binding
<% #Eval ("property name")%>
Data binding with data format
<% #Eval ("Property name", "{0: format string}")%>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service