标签:arp htm server type word keyword ext idt string
asp.net 中<%#Eval("")%> 与<%=%>区别。
<%#Eval("")%> 是绑定服务端数据的。
例如:<asp:TextBox runat="server" ID="txtscore" Text=‘<%# Eval("score")%>‘ Width="100px"></asp:TextBox> //score是后台查出的字段名称。
<%=%> 是绑定客户端数据的。
例如:c# code:string teststr="hello world";
html:<input type="text" value="<%=teststr%>">
标签:arp htm server type word keyword ext idt string
原文地址:http://www.cnblogs.com/longdb/p/7399674.html