源码地址: https://gitee.com/zhang_jianli

c# web 页面帮定数据的 7中方式

Simple property ;  Customer: <%# custID %>
Collection ; Orders: <asp:ListBox id="List1" datasource='<%# myArray %>' runat="server">
Expression ; Contact: <%# ( customer.FirstName + " " + customer.LastName ) %>
Method result ; Outstanding Balance: <%# GetBalance(custID) %>

<%# String.Format("{0:c}", ((DataRowView)Container.DataItem)["IntegerValue"]) %>
<%# DataBinder.Eval(Container.DataItem, "IntegerValue", "{0:c}") %>
<%# (bool)DataBinder.Eval(Container.DataItem, "BoolValue") %>

posted on 2007-10-24 12:57  天涯  阅读(317)  评论(0编辑  收藏  举报

导航

源码地址: https://gitee.com/zhang_jianli