What's the difference between <#eval and <#bind in asp.net

前端 未结 7 888
天命终不由人
天命终不由人 2020-12-31 01:09

In a gridview, we can use <%#Eval%> or <%#Bind%> to output values from a database. What is the difference between them?

7条回答
  •  臣服心动
    2020-12-31 01:50

    The main difference between eval and bind is eval is read only, we can't change on database thing eval.

    While using bind we can appply some change to the database.

提交回复
热议问题