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

前端 未结 7 827
天命终不由人
天命终不由人 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:34

    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.

    If you aren't wanting to handle data posted back, eval will do the job easily.

提交回复
热议问题