Saturday, July 28, 2012

Difference between <%# Bind(””) %> and <%# Eval(””) %>

EVal is one way binding, Bind is two wayIf you bind a value using Eval, it is like a read only. You can only view the data.If you bind a value using Bind, and if you do some change on the value it will reflect on the database alsoso when ever you just want to show metter on grid that time you should use Eval and if you want that user should be able to change the content and that should be reflect in database then we should use BindConclusion:Bind is Two way binding so data will go in both way from Database to Application and Application to Database.Eval is One way binding so data will go in one way only, which is database to Application

No comments: