Eval 和 Bind 方法的区别:
When binding an editable value to a control, you must use the Bind() method in your data
binding expression instead of the ordinary Eval() method. Only the Bind() method creates the twoway
link, ensuring that updated values will be sent back to the server.

解决方案 »

  1.   

    <%# Bind()%> 双向的  <%#Eval()%> 单向的
      

  2.   

    数据绑定表达式使用 Eval 和 Bind 方法将数据绑定到控件,并将更改提交回数据库。Eval 方法是静态(只读)方法,该方法采用数据字段的值作为参数并将其作为字符串返回。Bind 方法支持读/写功能,可以检索数据绑定控件的值并将任何更改提交回数据库。