Wednesday, November 25, 2009

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

EVal is one way binding, Bind is two way

If 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 also

so 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 Bind

Conclusion:
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

Share This!


1 comment:

Anonymous said...

[... ] is one must read source of information on this issue[...]
http://homeinsurance.cheap-quotes.info/

Powered By Blogger · Designed By Seo Blogger Templates