Tag Archives: Eval vs Bind in asp.net

What is the difference between Eval and Bind in Asp.Net?

Eval Eval is a one way binding. Eval is read only. Eval prevents postbacks. Eval can’t update the data in database. Syntax: Text=”<%#Eval(‘ColumnName’)%>” Bind Bind is two way binding. Bind is not readonly. Bind does not prevent postbacks. Bind can update the data in database. Syntax: Text=”<%#Bind(‘ColumnName’)%>”